How to restrict special character of a String field in servicenow OOTB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-17-2024 12:50 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-17-2024 12:59 AM
Hello @Santosh Oraon ,
Please check this out below link which will help you.
Thank you,
Omkar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-17-2024 04:58 AM
That is for the variables I want for a field level restriction @Omkar Kumbhar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-17-2024 05:17 AM
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.