Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to remove currency types in Service Portal

Nichole L
Tera Contributor

I have currency fields in my scoped application form and a requirement to hide all but the USD currency type option.

 

The following code in my onLoad client script seems to work only in the backend UI.  Is there a way to make this work on the Service Portal?

 

The UI Type is set to All.

 

function onLoad() {
g_form.removeOption('tuition_costs.currency_type','CHF');
g_form.removeOption('tuition_costs.currency_type','GBP');
...
}

 

What am I missing?  Any help is greatly appreciated.

1 REPLY 1

Marcos Kassak
Kilo Sage
Kilo Sage

Hi @Nichole L,

 

To use it in a out of the box way, please refer for the below documentation:

 

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/currency/concep...

 

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/currency/concep...

 

If you found my answer helpful or correct in any way, please don't forget to mark it to help future readers! 👍

 

--

 

Kind regards,


Marcos Kassak
Solution Consultant  🎯