Usage
This simple JavaScript component checks a condition with form-values and sets a class to the current node if the condition is true.
Syntax:(ClassName1): (condition1)[; (ClassName2): (condition2)]
At the moment there are only simple conditions supported:
Condition:(formName.fieldName) (Comparison or Logical Operator) ('fieldValue')
is-valid: myForm.myField == '1'Conditin examples
- myClassname: myForm.myField == '1'
- myClassname: myForm.myField < '1'
- myClassname: myForm.myField <= '1'
- myClassname: myForm.my.Field > '1'
- myClassname: myForm.myField[0] >= '1'
- myClassname: myForm.my.Field[0] != '1'
This is not very accessible! As a small helper, at least describe what happens in the label. You can use visually hidden text for that.