
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 02:39 AM
I have defined a Variable Validation Regex for a simple 6 digit number on my Madrid system:
This expression works fine and generates the field error:
However, when I hit the submit button the record is submitted without an error.
Other posts on this forum suggest that the submission should be prevented with an error
Is there anything else I need to do?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:34 AM
Hi there,
Yes it should prevent the submission. Tested this on Madrid + New York.
Are you using default SC Catalog Item widget? Catalog Item? Record Producer? Are you on Madrid or other version?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
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
08-21-2019 02:41 AM
Hi Gary,
I don't think it will stop the form submission even after showing the error
why not put that regex in onSubmit and stop the form submission?
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 02:55 AM
Hi Ankur, thanks for the update.
However, this article Service Portal Catalog Items: Regex Field Validation [Madrid] suggests that it should prevent submission

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:34 AM
Hi there,
Yes it should prevent the submission. Tested this on Madrid + New York.
Are you using default SC Catalog Item widget? Catalog Item? Record Producer? Are you on Madrid or other version?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
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
08-21-2019 03:50 AM
Hi Mark,
I think you are correct that it is not using the default Catalog Item widget
I tested again on my developer instance and it correctly prevents submission.
Thanks