- Issue created by @mitchel432
- πΊπΈUnited States mitchel432
I had a extra change that shouldn't be in the last patch. Removed that extra change and also selected the 4.0.0-alpha3 branch instead of dev.
When using multiple conditions on a checkbox, only one is allowed to be selected at a time. I found that this issue was caused by Issue #3244630: Warning: Undefined array key "call" in OptionsButtons->checkBoxesHandler() β . The solution found in issue #3244630 does not work for all dependency types. So instead I added a fix to their original solution that doesn't require skipping checkboxes.
List (text)
field (field_contact_type)
with multiple values Phone
and Name
. Cardinality unlimited. Change the form display to Check boxes/radio buttons
Telephone Number
field.Name
field.Telephone Number
. Controlled by: field_contact_type
. Values input mode Insert value from widget...
. Content Types, select the Phone
option.
Name
. Controlled by: field_contact_type
. Values input mode Insert value from widget...
. Content Types, select the Name
option.
Telephone Number
and Name
You will notice that the first time you select a checkbox, nothing will happen. Then after this, only one can be activated at a time. If you select both, then the second one will hide the first one instead of displaying both.
Removing the change made on issue #3244630. Then applying a fix for the original issue.
None.
None.
None.
None.
Active
4.0
Code
I had a extra change that shouldn't be in the last patch. Removed that extra change and also selected the 4.0.0-alpha3 branch instead of dev.