In a Panels Page overriding the Node Edit Form, I have the following setup:

  • Body Field on a Node that is set to required.
  • Panel Page - Body field (Form Content) - with a Visibility Rule set to hide if another field has a specific value.
  • Panel Page - Body field (Page Content) - with a Visibility Rule set to hide if the other field does NOT have that value.

Displaying the page in either situation works perfectly (field value set, or not set). However, when trying to save the form with the "Body (Form Content)" field not being displayed, it does not work. It shows that the field is required. This happens even though it is evident that the field contains data at that moment via the "Body (Page Content)" field.

As a workaround, I used the Conditional Fields module to set the Body field's state to "optional" depending on that other field's value. This allowed me to save the node, but it also emptied the Body field.

So in conclusion, it appears that if the Body (Form Content) field is not displayed on the panels page, regardless of having an existing value, it clears the field.

Any help would be greatly appreciated. Thanks.

Comments

NWOM created an issue.