First try at this and I think it's not working because the field I'm point it towards isn't showing as a "regular expression". What is it expecting in there?
Question
Question
Answer
Here is the setup:
On the advanced tab enter the reg exp:
Process Error Message:
You should get on your form:
Replies
Here is some documentation on regular expressions. Hopefully that helps.
I've tried all kinds of variations, including the ones that your link leads to (see below), but they are either ignored upon testing, or invalidate the controls I already have there.
I've tried field label in brackets, using the field name, using the field name variable, using different types of brackets, using different combinations. :(
For fields such as usernames, where I only want to allow alphanumeric characters (A-z and 0-9) I use the regular expression: \w{1,}
If you only want to exclude '&' and '@' try (?:(?![@&]).)+
( you enter the regexp on the field in the advanced tab and then you can configure the error msg)
~ Andrew
Andrew,
1) Thanks for the code (?:(?![@&]).)+
I have now replaced [^&]+ with your code, since it covers the @ sign which I hadn't done yet.
2) Thanks for your clip showing the error messaging entries in your Forms software. So, if you use this component of the Forms software and putting just username in that last field works for you, then my putting just Applicant_Name in my field should have worked. Should it not? But it doesn't. When I do a test, as if I was a new applicant, I do not get a message that says "Please do not use & or @ in this field" when I do my test runs.
You want to enter the actual field name ( not the variable name ) in the error message configuration page.
Alternatively you could just have it match your field type, such as a single line field.
Here is the setup:
On the advanced tab enter the reg exp:
Process Error Message:
You should get on your form:
Okay, success! So what I was doing wrong was in the second Process Error Message field, in the WHEN spot. My choice there was wrong.
Thank you so much!