Regex to check another Extra Field
-
I want to use regex to check another extra field.
Example:
Extra Field 1
Field Type: Radio
Label: Do You Like the Color Blue?,Yes;No
Required Field: YesExtra Field 2
Field type: textarea
Label: If Yes, Please explain
Required Field: No
Validation regex: /^[Do You Like the Color Blue/?]\bYes\b$/
Regex fail message: Please explain why you like the color blueI am not quite sure on how to do the regex validation so that it calls Extra Field 1 (or if it is possible). I want to say “If Extra Field 1 equals Yes, then Extra Field 2 is required.” I am not fluid in regex language, but I can get by if I knew how to call Extra Field 1. I might need something like: (?([Extra Field 1]=”Yes”)). I don’t really know…
Thanks
Thanks
- The topic ‘Regex to check another Extra Field’ is closed to new replies.