Closed (duplicate)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2019 at 19:27 UTC
Updated:
4 Apr 2019 at 14:26 UTC
Jump to comment: Most recent
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.
| Comment | File | Size | Author |
|---|---|---|---|
| Test_Webform.yml | 4.71 KB | cleo7186 |
Comments
Comment #2
cleo7186 commentedComment #3
jrockowitz commentedThis a really complex use case but you are right that this is a regression that needs to be tracked down.
Comment #4
cleo7186 commentedAh. 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.
Comment #5
jrockowitz commentedWhat version of pre-stable release of webform are you updating from?
Comment #6
cleo7186 commentedHmm, 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?
Comment #7
jrockowitz commentedThe issue is in the latest stable release.
Comment #8
jrockowitz commentedHere is the change that most likely triggered this regression.
#2985000: Cross page conditionals are not evaluated if they are based on elements that are on the current and previous page
Comment #9
jrockowitz commented@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.
Comment #10
cleo7186 commentedThe patch seems to fix the issue, thank you!
Comment #11
jrockowitz commented@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.