# BUG: FormView submit won't set the field relations

**URL:** <https://community.fibery.io/t/bug-formview-submit-wont-set-the-field-relations/6002>\
**Category:** Bugs & Issues\
**Created:** [March 21, 2024, 7:11pm UTC](https://community.fibery.io/t/bug-formview-submit-wont-set-the-field-relations/6002 "2024-03-21T19:11:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthurpires](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/arthurpires/32/7815_2.png) [@arthurpires](https://community.fibery.io/u/arthurpires)\
**Post date:** [March 21, 2024, 7:11pm UTC](https://community.fibery.io/t/bug-formview-submit-wont-set-the-field-relations/6002/1 "2024-03-21T19:11:46Z")

</div>

I created a form view to ease the process of creating some types of tasks for specific areas in my product. There’s a relation field called ProductArea where the user will set the related area in which this task should be applied to. The field is set as required so there’s no possibility that it is empty, but what happens is that the task is created without this field set:

The field with error is ProductArea → “Area do Produto”

 ![Screenshot 2024-03-21 at 16.09.43](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/a89910ff078b50b48d45552c6f1a174d9b4cdb62.png)

 ![Screenshot 2024-03-21 at 16.10.17](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/7/76fc043b89699d5bdb74c3f5cc527c17c6bee4dd.png)

What’s kinda funny is that my order relation field called Customer was correctly set. Represented by the value “Obramax” on the examples above.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 21, 2024, 7:59pm UTC](https://community.fibery.io/t/bug-formview-submit-wont-set-the-field-relations/6002/2 "2024-03-21T19:59:24Z")

</div>

What does the activity log for this entity show?

---

<div class="post-metadata">

**Author:** ![arthurpires](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/arthurpires/32/7815_2.png) [@arthurpires](https://community.fibery.io/u/arthurpires)\
**Post date:** [March 25, 2024, 10:23am UTC](https://community.fibery.io/t/bug-formview-submit-wont-set-the-field-relations/6002/3 "2024-03-25T10:23:48Z")

</div>

Hey Chris, here you go:

 ![Screenshot 2024-03-25 at 07.21.36](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/2/24bdfea25d8edb2b88d84ec1a447c64a4d3f9466.png)

There’s definitely something wrong there! I’ll review my entity rules. You got any other guess?

---

<div class="post-metadata">

**Author:** ![arthurpires](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/arthurpires/32/7815_2.png) [@arthurpires](https://community.fibery.io/u/arthurpires)\
**Post date:** [March 25, 2024, 10:32am UTC](https://community.fibery.io/t/bug-formview-submit-wont-set-the-field-relations/6002/4 "2024-03-25T10:32:33Z")

</div>

Ok, so it was one memory-fault that I had. I forgot that this entity had some automation rules, and this rule in particular was setting the field “ProductArea” based on another entity that could be its parent, this was causing the issue of re-setting the area to null/empty.

Thank you @Chr1sG for pointing me in the right direction!

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 25, 2024, 10:36am UTC](https://community.fibery.io/t/bug-formview-submit-wont-set-the-field-relations/6002/5 "2024-03-25T10:36:47Z")

</div>

By the way, you wrote that

> [@arthurpires](#):
>
> The field is set as required so there’s no possibility that it is empty

but it doesn’t look like the form view has ‘Area do Produto’ as a required field. Just FYI.
