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

  1. Install Drupal 10.2 and enable the Webform module version 6.2.2.
  2. Create a form with multiple steps, ensuring that some fields within each step are marked as required.
  3. Implement conditional logic to show or hide steps based on user input.
  4. Navigate through the form, deliberately leaving required fields blank in steps that should be displayed based on the conditions.
  5. Observe that the form allows progression to subsequent steps without enforcing the completion of all mandatory fields within conditional steps.
CommentFileSizeAuthor
#3 webform.webform.issue_3447408.yml5.6 KBjrockowitz

Comments

Martygraphie created an issue. See original summary.

cilefen’s picture

Please provide the YAML of a small form that exhibits the bug.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new5.6 KB

I can't replicate this issue using the attached example webform

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.