Tuesday, 3 March 2020

ServiceNow OOB Regex Validation for Currency || Email || IP address || Letter || Mac address || Number || URL

As we are using Madrid version of ServiceNow. I have come across one OOB feature of ServiceNow in Madrid for validating  below
Currency || Email || IP address || Letter || Mac address || Number || URL

We have a table in ServiceNow called  Questions Regular Expression “question_regex”. Which store the regular expression in record format. See below.

OOB we only three validation but we can create as many as we want with the help of  Regex.

Once we create a record in Questions Regular Expression “question_regex” table we can put that validation while creating variable in Catalog item.
See below: This works on Single line text field.

No more writing lengthy script for validation.
Below are the Regex validation we can utilize  

- Currency ($)
- Currency (€)
- Email address
- IP address
- Letter (A-z)
- Mac address
- Zip Code (NL)

Reference : 

More details on similar topic I have kept in portal  - https://www.servicenowpreparation.com/ you can visit.

Happy Learning

Sandeep Kumar

No comments:

Post a comment