In a simple script validator, I have the following code:
(cfValues['Implementation Status']?.value == 'Rolled Back' && transientVars["comment"]) || !cfValues['Implementation Status']?.value == 'Rolled Back'
Expected Results: Require a comment when Implementation Status = Rolled Back; otherwise don't require a comment. Implementation Status is a Radio Button field
Actual Results: A comment is always being required regardless of the value of Implementation Status.
Of course as soon as I post this, I realize I'm missing parenthesis:
(cfValues['Implementation Status']?.value == 'Rolled Back' && transientVars["comment"]) || !(cfValues['Implementation Status']?.value == 'Rolled Back')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.