Change default currency from USD to AED

Nithin21
Tera Expert

Without changing the configuration to single currency, is it possible to change the default currency from USD to AED.

find_real_file.png

I am looking at the contract module (ast_contract). 

1 ACCEPTED SOLUTION

for global changes, kindly refer the  below blog. 

 

https://community.servicenow.com/community?id=community_blog&sys_id=f1bcea25dbd0dbc01dcaf3231f96193b

 

 

let me check if it can be done for one table only. 

View solution in original post

11 REPLIES 11

Harsh Vardhan
Giga Patron

Just confirming  here, do you want the changes only for "ast_contract" table records or global changes ? 

Ideally we would like to do global.

Is there an option to do it per table also ?

for global changes, kindly refer the  below blog. 

 

https://community.servicenow.com/community?id=community_blog&sys_id=f1bcea25dbd0dbc01dcaf3231f96193b

 

 

let me check if it can be done for one table only. 

try with below onload client script on your form. 

instead of EUR , you can use AED

 

function onLoad() {
	//Type appropriate comment here, and begin script below
	if (g_form.getValue("payment_amount").indexOf("USD") != -1) {


		g_form.setValue("payment_amount", g_form.getValue("payment_amount").replace(/\bUSD\b/g, 'EUR'));
	}
}