Is there a way to limit the use of special characters in a field

877
1
09-29-2017 12:23 PM
RichardCochran
New Contributor

I am interested in preventing staff from using special characters (&,@,-,etc.) in certain fields.  When the Survey123 results are pushed into our Oracle tables, we concatenate the values of several fields to create a file naming convention for a pdf that's created from the data.   The special characters cause the naming system to fail. 

Thanks,

Rich

0 Kudos
1 Reply
BrandonArmstrong
Esri Regular Contributor

Hi Rich,

You may want to take a look at using regular expressions to limit the range of input characters.  Take a look at the following documentation...

Regular Expressions

'For example, the regular expression regex(.,'^[A-Za-z]*$') requires the user to enter only letters, no numbers or special characters, into a string question.'

Brandon