The CreatorCon Call for Content is officially open! Get started here.

Getting displayValue() in flow designer

Phil Wright
Tera Contributor

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?

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for your reply.  I will give this a test next week.

Thanks Ankur, had a similar issue - this is exactly what I needed.

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.