- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:13 AM
Hi experts!
I am trying to display the session currency code on a catalog item, while the user is filling out the form on Employee Center.
The problem is: A user fills out a non-standard request about purchasing something that is not in our service catalog. The user has to specify a price, but currently it is just a single line text field limited to number. When the form is submitted and the requested item is created, a flow saves the price of the text field to the price of the ritm. That price is stored in the session currency, meaning a user from USA saves it in USD, while a user from Germany saves it in EUR. This causes a lot of confusion, as they do not know which currency to type it in. (Like do a user from Germany need to convert it to USD before typing it in)
The need is: show what currency the session currency is, on the form, so the user knows what to type in.
Like:
Price field: single line text field
Currency, read only field showing one of USD, EUR, DKK.
Do any of you have a suggestion?
I tried looking through a lot of documentation, like How to use different currencies on a SerrviceNow instance - Support and Troubleshooting (servicenow....
I hoped that "getSessionCurrencyCode()" could do the trick, but that is not possible to call through a client script on load.
Thank you a lot!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 07:42 AM
@Rikke Badsberg1 Instead of using a single line text for capturing price, you can use a variable type 'Custom with Label' and in Type specification choose Widget 'Variable Currency'. This is an OOTB widget and automatically chooses currency symbol based on the user's locale and accordingly user can enter the correct price.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 07:42 AM
@Rikke Badsberg1 Instead of using a single line text for capturing price, you can use a variable type 'Custom with Label' and in Type specification choose Widget 'Variable Currency'. This is an OOTB widget and automatically chooses currency symbol based on the user's locale and accordingly user can enter the correct price.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 11:26 PM
Thank you so much! It works perfectly!