Currency type filed

eyal abu hamad
Mega Sage

hey, I want to update the currency symbol via script but it dose not allow me. instead it automatically parse the value to specific Currency. how can I change the Currency symbol ?

2 ACCEPTED SOLUTIONS

Viraj Hudlikar
Giga Sage

Hello @eyal abu hamad 

 

You need to set it like this

var currencyCode = 'EUR';
current.currencyTypeField.setValue(currencyCode + ";" + convertedValue);

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

Kieran Anson
Kilo Patron

To set the value of currency in a different currency to the user's, you can set the value with a prefix currency code value.

 

For example, if I wanted to set the total_cost field to a specific value I would do the following:

current.setValue('total_cost' , 'GBP;' + '499.99')

Further details can be found on the docs site

View solution in original post

6 REPLIES 6

Viraj Hudlikar
Giga Sage

Hello @eyal abu hamad 

 

You need to set it like this

var currencyCode = 'EUR';
current.currencyTypeField.setValue(currencyCode + ";" + convertedValue);

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

I have other problem now, when I try to get the value or display value using script it get automatically converted to my currency.

eyalabuhamad_0-1739273817605.png

 

eyalabuhamad_1-1739273843829.png

 



Kieran Anson
Kilo Patron

To set the value of currency in a different currency to the user's, you can set the value with a prefix currency code value.

 

For example, if I wanted to set the total_cost field to a specific value I would do the following:

current.setValue('total_cost' , 'GBP;' + '499.99')

Further details can be found on the docs site

I have other problem now, when I try to get the value or display value using script it get automatically converted to my currency.

eyalabuhamad_0-1739273817605.png

 

eyalabuhamad_1-1739273843829.png