Is it possible to format string fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2017 06:44 AM
Hi I have a string field called phone number in a custom application. Im trying to figure out if you can format the field for phone numbers ex.
phone number: - -
but when I add this on a template or a default value it returns nothing and the field is empty does anyone know how to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2017 06:46 AM
Hi Austin,
you cannot add format but you can do validation whether hyphen(-) is present 2 times in the value and also at which position.
Mark Correct if this solves your issue and also hit Like and 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-04-2017 11:47 AM
Austin,
Can you use a phone number field type instead of a string?
Using Phone Number Fields - ServiceNow Wiki
Thank you,
Christen
If this solves your issue please Mark Correct. Hit Like or Helpful if you find the response helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2017 01:03 AM
Hi Austin,
Any update on this?
Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader