Can we set the Prefix "GBP (£)" before the monetary amount on custom fields.

gbabu1
Tera Contributor

Prefix "GBP (£)" before the monetary amount on premium fields.

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @gbabu1 

 

Using Script , Partially you can achieve it .

Refer Servicenow Documentation: Default currency values in scripts   

Sample script is given in the documentation.

 

getCurrencyString()Returns the currency value as entered as an unformatted number, prefixed by the 3-letter ISO currency code, separated by a semicolon.JPY 21345.67
getCurrencyCode()Returns the 3-letter ISO currency code for the currency value as entered.JPY
getSessionCurrencyCode()Returns the 3-letter ISO currency code for the user's session currency.EUR
getReferenceCurrencyCode()Returns the 3-letter ISO currency code for the reference currency.USD
setValue()Sets the currency value as:
  • An unformatted number taken as a value in the user's session currency.
  • An unformatted number prefixed by a 3-letter currency code separated by a semicolon.
4369.21 or JPY 4369.21
setDisplayValue()Sets the currency value as:
  • A number formatted in the user's locale that is taken as a value in the user's session currency.
  • A number formatted in the user's locale prefixed by a 3-letter currency code separated by a semicolon.
4369.21 or JPY 4369.21
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti