- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2016 01:08 PM
Hello ServiceNow community,
I have a record producer that is set up with three radio buttons. As an example, one of them has Text (label) of "Supply Chain" and a value of "supply_chain". In my script I have these writing out to the work notes via the following code example
desc += " \n| Oracle subcategory: " + producer.oracle_subcategory;
[...]
current.work_notes = desc;
When I run this I get the values for "producer.oracle_subcategory" when I want the text, is there an easy way to do this? In customer viewable notes "Supply Chain" looks much nicer than "supply_chain".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2016 01:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2016 01:22 PM
Hello William,
Try this:
desc += " \n| Oracle subcategory: " + producer.oracle_subcategory.getChoiceValue();
I've not used it before with record producer variables, but it might work!
Jamie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2016 01:32 PM
No dice...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2016 01:33 PM
getDisplayValue 😃