Problem/Motivation

I am having a field on the second page of a wizard show up when it should be hidden.

To recreate: (also see attached webform for example)

1. Field 2 on page 2 is conditional on Field 1 on page 1 equaling "Yes".
2. Field 3 on page 2 is conditional on Field 2 on page 2 equaling 'Yes".
3. (The issue) Field 3 on page 2 is being displayed when Field 1 on page 1 is "No".

It only happens with wizards, when i remove the wizard it worked as expected.

Also, I believe this functionality was working, so a recent patch has changed this behavior.

CommentFileSizeAuthor
Test_Webform.yml4.71 KBcleo7186

Comments

cleo7186 created an issue. See original summary.

cleo7186’s picture

Issue summary: View changes
jrockowitz’s picture

This a really complex use case but you are right that this is a regression that needs to be tracked down.

cleo7186’s picture

Ah. I have a form that is about 4-5 pages long and this issue is currently disrupting the flow- how could i assist in tracking down the bug?

I am rather new to open source/programming in general but I am happy to try.

jrockowitz’s picture

What version of pre-stable release of webform are you updating from?

cleo7186’s picture

Hmm, it looks like we are using "drupal/webform": "5.x-dev" from the composer.json file, so I believe we have been on the dev branch for a while now (probably 4-5 months at least). We are set up with acquia pipelines so every time we push to dev it pulls down the latest commit (I believe).

Would you recommend switching to the latest stable release and see if the issue persists?

jrockowitz’s picture

Priority: Normal » Major

The issue is in the latest stable release.

jrockowitz’s picture

jrockowitz’s picture

Status: Active » Needs review

@cleo7186 #3042289: Conditionally hidden field flashes is a closely related issue and I updated that issue and provided patch to address this issues specific problem.

Please manually and fully test this patch.

cleo7186’s picture

The patch seems to fix the issue, thank you!

jrockowitz’s picture

Status: Needs review » Closed (duplicate)

@cleo7186 the patch in #3042289: Conditionally hidden field flashes is a major change. Did you also test the conditional logic on other webforms?

Can you please also post a comment on that issue?

I am going to mark this as a duplicate so that our discussion can move to #3042289: Conditionally hidden field flashes.