We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Currency in Variable Currency Widget

shoonie
Tera Contributor

Hello!

I have a catalog item where the user is needed to input an amount. I have added the Variable Currency widget as the Input Amount variable. I also need the Input Amount variable to be added as the Price field in the RITM. However, the Price Field in RITM is not editable. As in the currency type of the price. Is there a way I can take the currency code from the widget to use it in the flow to change the price currency?

3 REPLIES 3

Sanjay191
Kilo Patron

Hi  @shoonie  

Yes, you can use the widget's currency code that is attached to the catalog item. Create a temporary (or hidden) variable/field to store the selected currency code and populate it from the widget. The field can be hidden from the user if it is only required for backend processing. Once the value is stored in the field, you can easily utilize it within Flow Designer for your flow logic and downstream actions.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You

Ankur Bawiskar
Tera Patron

@shoonie  

is that an OOTB variable type or a custom widget?

share that widget code?

share screenshots of what you have configured and how it looks and what you expect?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hello @Ankur Bawiskar. The Variable Currency widget is OOTB. I've cloned it to make some changes so that I can take the currency.  This is what I have so far:

shoonie_0-1782297571415.png

shoonie_1-1782298078260.png

So far, this returns US if US$, not USD. However for currencies like €, it does not return any text since it is in symbol.