How to reproduce error?
Fresh installation on 8.8.2 and webform 8.x-5.x-dev

Testing Example: Elements: Condition Logic webform
Create a custom buttons in this test form and is required based on another element selection.

They work well on their own but if the become required based on simple condition it gives error.

Thanks for your great module once again.

MkSamy

The example form yaml.

checkbox_example:
'#type': details
'#title': 'Checkbox example'
'#open': true
checkbox:
'#type': checkbox
'#title': 'Please check this box'
test_custom_buttons:
'#type': 'options_custom:buttons'
'#title': 'Test custom buttons'
'#options':
'Test one': 'Test one'
'Test two': 'Test two'
'Test three': 'Test three'
'#states':
required:
':input[name="checkbox"]':
checked: true

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MkSamy created an issue. See original summary.

jrockowitz’s picture

The attached webform can be used to reproduce this issue.

jrockowitz’s picture

jrockowitz’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: 3112224-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

jrockowitz’s picture

Status: Needs work » Needs review
FileSize
3.05 KB
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download the latest dev release to review.

  • jrockowitz authored 2696ee9 on 8.x-5.x
    Issue #3112224 by jrockowitz: Webform custom option buttons gives plugin...
MkSamy’s picture

Its working well now as intended.

Thanks for the real quick fix.
Much appreciated.

MkSamy

Status: Fixed » Closed (fixed)

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