- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2024 02:00 AM
How to restrict an single line text variable to allow only strings and not numaricals using client script.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2024 02:09 AM
Hi there,
Whats the reason for mentioning Client Script? Would Regex Validation also work for you?
- 2019-04-22 - Article - Service Portal Catalog Items: Regex Field Validation
- 2019-08-14 - Article - Regexes for Catalog Items Variable Validation, part 2
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2024 02:09 AM
Hi there,
Whats the reason for mentioning Client Script? Would Regex Validation also work for you?
- 2019-04-22 - Article - Service Portal Catalog Items: Regex Field Validation
- 2019-08-14 - Article - Regexes for Catalog Items Variable Validation, part 2
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2024 02:46 AM
Thanks, I have created new Regex condtion as below and it worked.
^[A-Za-z ]+$