How to convert the currency in USD based on the different FX rates

Koyel Guha
Tera Contributor

Hi, 

I have a requirement on currency conversion in USD , we will enter amount in variable "Amount in LEC" (single line text) and will select currency(AUD ,EUR etc as mentioned below) so, user will add amount like 1000,200.50 etc and fx currency then amount will convert in USD and populate in new variable "Equivalent in USD".. Below is the screenshot for ref. Please help me how to fulfill this requirement. 

 

KoyelGuha_0-1705413315743.png      

NameCurrencyUS$ per LC
Australian DollarAUD0.72000
Canadian DollarCAD0.75188
EuroEUR1.10000
British PoundGBP1.21000
Polish ZlotyPLN0.22173
Singapore DollarSGD0.74627

 

Thank you

 

2 REPLIES 2

AshishKM
Kilo Patron
Kilo Patron

Hi @Koyel Guha , 

The second field can be use the calculated value or you can write onChange script and read the  FX rate from the table and calculate the value for ""Equivalent in USD".

Share some code or screen shot from dev.

 

-Thanks,
AshishKMishra


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Koyel Guha
Tera Contributor

Hi Ashish,

 

I could see there are few entries in fx rate table. However, I need to use the excel below . Do I need to add these records in the fx rate table. I have not developed any script yet.

Can you please help me with the steps to develop this

 

NameCurrencyUS$ per LC
Australian DollarAUD0.72000
Canadian DollarCAD0.75188
EuroEUR1.10000
British PoundGBP1.21000
Polish ZlotyPLN0.22173
Singapore DollarSGD0.74627