Conditional Fields doesn't seem to work when the dependent field is on the next page in a multipage entity form (when using Field Group Ajaxified Multipage to allow validation on each form page).

We have a multipage entity form with a dependent field on page 2, and a radiobutton on page 1. The chosen value of the radiobutton on page 1 should determine the visibility of the dependent input on page 2. This, however, doesn't work: the dependent field is always visible.

This occurs when we enable 'Field Group Ajaxified Multipage', which is necessary, because we need to validate the form after each page. When 'Field Group Ajaxified Multipage' isn't enabled, all works as expected.

Comments

iniKim’s picture

Issue summary: View changes
kyuubi’s picture

Hi,

I am interested in a solution to this.

Obviously this is due to the fact states are being used, but I would be keen in exploring a possible solution for this even if it has to be worked out outside the scope of this module.

Is any method available that allows me to get the conditional settings for a specific field?

We could use that to form_alter on each step and hide (for example) the elements dependent of fields in previous steps.

davemanalta’s picture

+1

Arbalest89’s picture

+1

dqd’s picture

Version: 7.x-3.0-alpha1 » 7.x-3.x-dev
Status: Active » Closed (outdated)

Thanks for the report and all the efforts in here. But due to inactivity in this issue for some years and because of the upcoming EOL of Drupal 7, I will close this issue on the way cleaning up the issue queue.

Feel free to re-open as "Needs review" if you found a solution or have a patch to be reported to help others.