Hi Everyone,
I'm having a problem with a validation rule that we're using on text fields that we're using for email entry on some forms.
We're using the following custom pattern to try and ensure people are entering emails in a standard format, if they don't they get the usual red outline/advisory text on the field:
[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,4}
The issue we have is this rule can't handle form users who have an apostrophe in their name, they'll get the invalid email text etc.
I have tried to add an apostrophe in here but it always shows as an 'Invalid pattern' on the 'Data Entry Pattern' window; there's also no option for apostrophes in the 'Insert a special character' drop-down on the same window. I assume this is because an apostrophe may be some sort of reserved character in InfoPath, is there any way around this without resorting to code etc?
Thank you.