- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 09:51 PM
There is one variable on my record producer, there I want to restrict the user to put lower case letter, if users enter any lower-case letter, then it will throw warning message and clear the field. Please let me know how to write the client script for this logic
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 10:13 PM
@Community Alums No script is required
1.) Create a Regex record in the question_regex table, Regex - ^[a-z]+$
2.) Apply the regex to the variable in the Type specifications tab in the variable record
3.) Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 10:45 PM
Hi @Community Alums ,
Yu can use the below option.
1. Create a record on the Question Regular Expression (question_regex) table. which is used to validate the fields.
Expression: ^[A-Z]*$
2. And select above created record in catalog variable form on Validation Regex.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 10:13 PM
@Community Alums No script is required
1.) Create a Regex record in the question_regex table, Regex - ^[a-z]+$
2.) Apply the regex to the variable in the Type specifications tab in the variable record
3.) Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 10:45 PM
Hi @Community Alums ,
Yu can use the below option.
1. Create a record on the Question Regular Expression (question_regex) table. which is used to validate the fields.
Expression: ^[A-Z]*$
2. And select above created record in catalog variable form on Validation Regex.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar