Hi,
Problem/Motivation
The Webform Card sub-module does not recognise the required field attribute present in a conditional webform card.
When conditional logic is applied to webform cards and they include required fields, the ‘required’ attribute is null, which allows users to continue filling in the form without having filled in all the required fields’.
Steps to reproduce
- Install Drupal 10.2 and enable the Webform module version 6.2.2.
- Create a form with multiple steps, ensuring that some fields within each step are marked as required.
- Implement conditional logic to show or hide steps based on user input.
- Navigate through the form, deliberately leaving required fields blank in steps that should be displayed based on the conditions.
- Observe that the form allows progression to subsequent steps without enforcing the completion of all mandatory fields within conditional steps.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | webform.webform.issue_3447408.yml | 5.6 KB | jrockowitz |
Comments
Comment #2
cilefen commentedPlease provide the YAML of a small form that exhibits the bug.
Comment #3
jrockowitz commentedI can't replicate this issue using the attached example webform
Comment #4
jrockowitz commented