Hi All,

I have only recently joined the community, so please forgive me if anything on this issue has been entered incorrectly. Please let me know if I have entered anything wrong and I will amend it.

I know a few other users have reported this problem, but I could not find one that directly refereed to Drupal 7 and a patch to go along with it.

On my site I have a webform page with conditionals and a webform that sits in the block on the footer of every page. The conditionals for the page do not work, because the JS is being replaced by the conditionals in the footer.

To fix this the JS needs to be added for each webform, not just as one. This will stop the JS from being overwritten and conditionals will work for both forms.

I have already started work on providing a patch for this, I will keep this issue updated as and when I make progress.

Cheers,
Colin.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

colinstillwell’s picture

I have created a temporary patch which fixed the problem I was having and may be a good interim solution for others.

Single forms behave as normal.

If there are multiple forms, it will only use the settings for the first form that has conditionals. If additional forms also have conditionals then it will raise a warning in watchdog saying "Only one webform with conditional fields is allowed per page - only your first conditional form will work.".

tedbow’s picture

I think there might already be patch for this could you please search the issue queue to see if there other issues.

If so could you please paste them here.

tisteegz’s picture

Version: 7.x-1.0-beta1 » 7.x-1.0-beta2
Priority: Normal » Major
Issue summary: View changes

Just found the following post if anyone still needs this

https://www.drupal.org/node/1704682