Hello,
I have a confiform with the following fields:
TYPE (Required): Drop-down options INDIVIDUAL or GENERIC.
NAME (Not Required): text area.
SUMMARY (Required): text area.
The field NAME is only required when the value in TYPE is set to INDIVIDUAL.
I set the following validation rule (.+) to ensure the NAME field IS NOT EMPTY when TYPE = INDIVIDUAL and included a message to show when validation rule matches.
The rule works if the field is empty; the message is displayed.
The rule works if the field has content in the first line; the message is not displayed.
The rule does not work if the field has content in the 2nd line as it's reading the whitespace (newline).
I looked on Regex Validation; tried (\s), (\S), (\s+) and (\S+) without success.
What validation rule should I be using to disregard the whitespace?
Thanks for your help!
This could be addressed in a more simple way - https://wiki.vertuna.com/spaces/CONFIFORMS/pages/36831436/Conditional+validation+for+required+field
No need for the regular expression - you just define the condition for your validation rules
TYPE.label:Individual AND NAME:[empty]
(no need for the regular expression in the "validation rule")
Alex
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.