Hi,
Im trying to use the Condition Tester by checking whether three different select list have been selected. E.g. Atleast one select list needs to be chosen to progress onto transition.
I've got something like this:
if (cfValues[13614] != 'None') {return true} else {return false}; if (cfValues[13616] != 'None') {return true} else {return false};
but its not working properly as even though value is None it still shows as True.
Any help is appreciated.
Community moderators have prevented the ability to post new answers.
cfValues is indexed by field name. "None" is just what's displayed when the value is empty (ie null). So to check any of three select lists are filled you could use
cfValues["1st select"] || cfValues["2nd select"] || cfValues["3rd select"]
Thank you so much, could you just explain the code as Im a beginner and this would help me learn further what do the || do etc. thanks again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The expression 'cfValues["1st select"]' returns true if in this select list is a value - it returns false if empty. || is the OR operator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Udo!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.