We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Modifying Currency type options for currency fields on a table form

Yathvika
Tera Contributor


Hello Community,

 What's the best approach to modify the currency type for the currency fields without touching the global currency table, and this should work in platform UI and workspace
  
   I created the client scripts with (addoption/remove option) glide methods. This is just working on Platform UI of the field However on the workspace this change is not reflecting and still the Active Currencies from the Global Currency table are visible.

Yathvika_0-1771264108510.png


TIA.




2 REPLIES 2

Tanushree Maiti
Giga Sage

Hi Yathvika,

 

Best approch would be:  to  add a new currency type for currency fields in ServiceNow workspaces, 

i.navigate to System Localization > Currencies [fx_currency] and create a new record for the required currency.

ii.Ensure the currency is set to active.

iii.To enable multiple currencies in the dropdown, set the system property glide.i18n.single_currency to false. 

 

Without global table change whenever you are showing the option using Client script remove/addOption(), that currency data is not getting saved to server properly as it supposed to save & get synced to every place.

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

@Tanushree Maiti   Thanks for the response.
  We are not thinking of making changes directly on the Global Currency table, as the currency table , currency field data type will be used in multiple projects and we want to make sure this change is reflecting for only our table and fields/forms.