Closed (fixed)
Project:
Webform
Version:
6.2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2022 at 03:47 UTC
Updated:
20 Apr 2024 at 12:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jomsy commentedComment #3
jomsy commentedComment #4
cilefen commentedPlease provide a minimal form that demonstrates the bug.
Comment #5
jomsy commented@cilefen
Please find the Webform source below:
Comment #6
cilefen commentedIf I am understanding this report correctly, isn't this just the Drupal Core Form API's ordinary behavior, which is that required fields are simply required, whether or not JavaScript has hidden them?
Comment #7
jomsy commented@cilefen
The issue is not that the hidden field is required.
The Fruit Category field, when it is visible(i.e the First Name field is filled) ,always forces the user to select the option Summer for submitting the form. You can't just select the Spring option and submit the webform
Comment #8
jomsy commentedComment #9
cilefen commentedI’ve added a descriptive title based on what I understand about what you are saying.
In the steps to reproduce, can you explain in more detail what about the form post fails and in what way?
Comment #10
jrockowitz commentedThe attached webform replicates the issue.
Comment #11
jrockowitz commentedThe MR is very safe and minor tweak to fix the conditional logic.
Comment #13
jrockowitz commentedMarking RTBC with assumption that all the tests will pass.
Comment #15
jrockowitz commented