How to remove leading and trailing spaces for a reference field for eg. Caller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2020 08:17 AM
Hi Everyone,
I am trying to remove/trim the leading and trailing spaces on a reference field eg. Caller.
Use case:
In the "Caller" field, if you have leading whitespace or trailing whitespace (say, from copy/paste function), it will fail to find the user. As a programmer, I always remove leading/trailing whitespace from user input to ensure proper matches in search routines. How can we achieve it on a reference field. Please help me out.
- Labels:
-
Reference Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2020 08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2020 08:32 AM
Hi,
the reference field is not where user can type in free form text so removing leading and trailing spaces doesn't make sense
Also if they want to populate value in there they need to give proper value or use lookup icon and then select the record
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
09-15-2021 04:55 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
Regards
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
05-09-2020 01:12 AM
Hi,
Is there any update on this? Is this question resolved or you need some more assistance.
Please consider marking appropriate reply as ✅Correct & 👍Helpful.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
