Regular Expression to validate a Multi Text field in Catalog Item .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 03:17 AM
Has anyone been able to build a dynamic regex string in a Catalog Client Script to validate an entry in a service catalog field which is a multi line text Field.
|
A user can enter multiple comma separated values in this field but we need to validate or normalize the input in text box.
The above field can only accept the comma-separated values as below.
svcjavaapp1@XYZ.COM , HTTP/sl73javasrvr01.visa.com@XYZ.COM.
I need to write validation i.e Regular expression which will allow only above type of values and suppose if someone enters svcjavaapp1@xyz.com it should make it to svcjavaapp1@XYZ.com once the user click outside or move to next field.
Spaces should also be removed once requestor is done with his update and click outside the box or move to next field.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 03:30 AM
Hi saaquib,
Go through the below link that might help you.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0661825
Mark helpful or correct based on impact.
Regards,
Priyanka A.