How to restrict special character of a String field in servicenow OOTB

Santosh Oraon
Tera Expert

Hi Team,
If anyone know how to restrict special charcter for a text type field . I want to restrict some special charcter like @#$
without scripting can we achive that

3 REPLIES 3

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @Santosh Oraon ,

Please check this out below link which will help you.

https://www.servicenow.com/community/developer-articles/field-validation-does-not-contain/ta-p/23099...

 

Thank you,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

That is for the variables I want for a field level restriction @Omkar Kumbhar 

OlaN
Giga Sage
Giga Sage

Hi,

Interesting question. I'm sorry to say, no, there is no way (that I know of) this can be done unless you do some scripting.

There is no (string) field type that does not allow for special characters.

This must be checked at some point, and the only way I know, is through a script that validates the data using Regex.