We have a custom field "Field Issue" (a checkbox), and another custom field "Cause Analysis" (multi line text).
Now I want to make sure that when a fiel issue is resolved, a cause analysis must be documented.
So I created a validator for the resolve issue workflow step:
cfValues['Field Issue']?.getValue() == null || cfValues['Cause Analysis']
System Behaviour:
- When "Field Issue" is checked and "Cause Analysis" is empty, the validation fails (OK)
- When "Field Issue" is checked and "Cause Analysis" contains text, the validation fails (not OK)
- When "Field Issue" is not checked and "Cause Analysis" contains text, the validation passes (OK)
- When "Field Issue" is not checked and "Cause Analysis" is empty, the validation passes (OK)
Any help is highly appreciated!