Hi, I'm wanting to have a text field in Survey123, but would like to restrict the type of value entered.
I'd like the field to be restricted to prevent entering of specific words, such as:
I saw that you could use regex in the constraint field, such as
not(regex(.,"KNOW"))
which prevents entry of both UNKNOWN and DON'T KNOW but I haven't been able to figure out how to constrain by multiple values. I've tried using OR within the regex as well as having two regex formulas [ e.g. not(regex(.,"KNOW")) OR not(regex(.,"NONE")) ] but they didn't work.
How could I prevent form submission containing multiple specific words?
I won't be able to constrain just by "NO" because this will likely be used in other wording.