After trigger checkboxes require message(client-side validation), next submmit will not trigger its next required field's mandatory message.

Created on 11 May 2021, almost 4 years ago
Updated 13 December 2023, over 1 year ago

After trigger checkboxes require message(client-side validation), next submmit will not trigger its next required field's mandatory message.

Steps to reproduce:

  1. Create required checkboxes and required other fieils for form, this is my form source below.
  2. Click Submit for the first time, trigger checboxes's mandatory message, the display is normal.
  3. Check the non-first option of checkboxes, then click submit buttom, its next required field's mandatory message will not be triggered.(I think it should be triggered)

test_checkboxes:
  '#type': checkboxes
  '#title': 'Test Checkboxes'
  '#description_display': invisible
  '#options':
    A: OptionA
    B: OptionB
    P: Others
  '#required': true
  '#required_error': 'Please select your option.'
test:
  '#type': textfield
  '#title': test
  '#required': true
test_select:
  '#type': select
  '#title': Type
  '#title_display': invisible
  '#description_display': invisible
  '#options':
    A: optionA
    B: optionB
    C: optionC
  '#empty_option': 'Test Type'
  '#required': true
  '#required_error': 'Please select Type.'
🐛 Bug report
Status

Closed: duplicate

Version

5.13

Component

Code

Created by

🇨🇳China Omega_yang

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024