how can I validate a phone number with country code on the record producer side , any help ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 12:46 AM
I have phone number field and I want to populate it on the record producer side .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 12:54 AM
Hi,
you can use variable validation Regex for this and no script required.
Refer few OOB ones
Regex for US Phone for example I created -> you can enhance it as per your requirement
^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 04:53 AM - edited 01-12-2023 01:45 AM
Hi there! Validation of a phone number with country code on the record producer side is quite difficult. Initially, it would be the best to use a phone number creator. I love this kind of tools, as I'm not enthusiastic about using my personal data online. Don't worry if you don't know how to generate temporary phone number. It's a piece of cake. I use it all the time to register on a website more securely. And the best part is that I can use this tools no matter where I am. So, if I were you, I'd give it a try.