- Issue created by @jphelan
- Status changed to Closed: won't fix
10 months ago 10:14am 18 January 2024 - πΊπΈUnited States jrockowitz Brooklyn, NY
Conditional logic for composite elements should be implemented in custom code. There are examples in webform_example_composite.module.
If we allow set #states for composite sub-elements via the UI, we must also sort out backend conditional validation.
- π©πͺGermany demonde
As far as I can see, there is no example for conditional logic for composite elements in webform_example_composite.module.
Either I did not find it in the module code or it is not there.
- π©πͺGermany demonde
Thanks.
So it is
public static function afterBuild
inwebform/modules/webform_example_composite/src/Element/WebformExampleComposite.php
which allows to define statest.