Getting displayValue() in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 09:11 AM
I am displaying a select box value on a catalog RITM and the value displaying is the actual value and not the displayValue(). Is there a setting to have flow designer use the display value?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 09:19 AM
Hi Phil,
can you try this in the script section of the flow designer
var selectBoxDisplayValue = fd_data.trigger.current.variables.<selectBoxVariable>.getDisplayValue();
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
08-21-2020 10:10 AM
Thanks for your reply. I will give this a test next week.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2021 11:45 PM
Thanks Ankur, had a similar issue - this is exactly what I needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 03:34 AM
This unfortunately does not work in Vancouver.
The error you'll get is
Error: Cannot find function getDisplayValue in object application.,Detail: Cannot find function getDisplayValue in object application.
ServiceNow recommends creating a custom action to lookup the value from sc_item_option_mtom table. You could do this through looking up the submitted value from sc_item_option_mtom table then lookup the display value from the question_choice_list table.