[Webform Card] Attribute required is null for conditional Webform Card contains required fields

Created on 15 May 2024, 6 months ago

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.
🐛 Bug report
Status

Active

Version

6.2

Component

Code

Created by

🇷🇪Réunion Martygraphie Saint-Denis (Réunion)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024