Setup: Create a form with a required textfield inside a fieldset. For each component, create a conditional that shows and hides it. Set the conditionals so that the fieldset is hidden and the textfield shown.

Result: The form will not submit because the textfield is required but empty.

Intended result: Form submits because hidden textfields should not be considered.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland created an issue. See original summary.

Liam Morland’s picture

Status: Active » Needs review
FileSize
691 bytes

  • Liam Morland committed 23f0073 on 7.x-4.x
    Issue #2873783: Disable form controls when hiding them
    
Liam Morland’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.