- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 08:45 AM
Before I write a script to do this, I was wondering if there is an OOB way of showing the text of a catalog item variable instead of the value on a form. I've been looking around for a while now and can't seem to find a way to do it OOB, so just want to make sure I'm not missing something before wasting time writing a script for it.
Catalog Item Variable options:
I need this to show the text instead of the value:
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 06:00 AM
So In your record producer, value is gettng mapped instead of label
Since you are using map to filed from you record producer variable, your choice value is getting mapped.
Remove 'Map to Field' and use producer script with below logic
current.u_var_strategic_alignment = producer.u_var_strategic_alignment.getDisplayValue();
//modify names accordingly.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 06:00 AM
So In your record producer, value is gettng mapped instead of label
Since you are using map to filed from you record producer variable, your choice value is getting mapped.
Remove 'Map to Field' and use producer script with below logic
current.u_var_strategic_alignment = producer.u_var_strategic_alignment.getDisplayValue();
//modify names accordingly.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP