- Issue created by @jeroen_schipper
Changes are ready in the 1.1.x development release. We should still be testing this.
- 🇧🇪Belgium bernardopaulino Brussels
I created a patch for the branch 1.4.x that significantly improves the webform element states handling to properly match the default behavior of the webform module and expose multiple triggers/conditions for a single element.
Key Improvements:
1. Proper Multiple Triggers Support
- The original implementation only handled simple single trigger cases
- New implementation properly handles complex state configurations with multiple triggers and logical operators (and, or, xor)
- Supports both numeric array structures (alternating triggers/operators) and string key structures
2. Enhanced GraphQL Schema
- Added
WebformElementStateTrigger
type to properly expose trigger details - States now include
triggers
array,operator
, andcondition
fields - Each trigger exposes
type
,value
, andelement
information
Testing Recommendations:
- Test with webforms containing complex conditional logic
- Verify both single and multiple trigger scenarios work correctly
- Ensure logical operators (and, or, xor) are properly handled
- Test with various webform element types and trigger conditions
- 🇧🇪Belgium bernardopaulino Brussels
bernardopaulino → changed the visibility of the branch 3492527-better-webform-element to hidden.
- 🇧🇪Belgium bernardopaulino Brussels
bernardopaulino → changed the visibility of the branch 3492527-better-webform-element to active.