Problem/Motivation

There is a really common UI pattern where a user is asked to check a box before entering a value. This creates two values that need to handled/parsed when generally you only need to store the entered value.

For example, if a user wants to enable pattern validation they should check the 'Pattern' checkbox and then enter the Pattern's Regular Expression. Technically, on the entered pattern needs to be saved for an element. The checkbox can be checked when a pattern is defined.

Proposed resolution

Provide a checkbox value input.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

  • jrockowitz committed 7f9246f on 2941740-checkbox-value-element
    Issue #2941740: Provide a checkbox value input
    

  • jrockowitz committed 9aad89b on 2941740-checkbox-value-element
    Issue #2941740: Provide a checkbox value input
    

  • jrockowitz committed 13ebc54 on 2941740-checkbox-value-element
    Issue #2941740: Provide a checkbox value input. Restore Markup element.
    

  • jrockowitz committed 357e5b9 on 2941740-checkbox-value-element
    Issue #2941740: Provide a checkbox value input. Write tests.
    
jrockowitz’s picture

Status: Active » Needs review
FileSize
13.3 KB

  • jrockowitz committed 9a5ce76 on 8.x-5.x
    Issue #2941740 by jrockowitz: Provide a checkbox value input
    
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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