How do I prevent a currency field from being converted in a notification?

Wayne Richmond
Tera Guru

I have a currency field on a form called u_suspected_loss_local. The currency is stored in the local currency the user selects when completing the form. This is how it is shown on the form:

loss.png

However, when the confirmation email notification is sent, the amount is converted to the default currency of GBP:

loss2.png

How can I prevent this from happening? I have tried setting the glide.i18n.single_currency property to true, however this doesn't work and prevent all currency fields from being edited to another currency.

Help is much appreciated as always.

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

Use this in the mail script


template.print(current.price.getCurrencyDisplayValue());


View solution in original post

3 REPLIES 3

Abhinay Erra
Giga Sage

Use this in the mail script


template.print(current.price.getCurrencyDisplayValue());


Brilliant, thanks Abhinay



wwsml.jpg


Abhinay Erra
Giga Sage

You bet !!!