I have A Shopping Web with a cart and items that include the total sum I want to add a button near the sum price.the sum price is the sum of the products in my cart I want to add a button with a javascript function to change the currency for example the default is dollar $ so the price right now is $0.00 after adding one item it will be for example $249.99.I want to click on the button near the price to change the currency to euro for example and the price will be instead of dollars than in euros how I can do that?I new here I don't understood how I can attach or apply something on other expression with button with javascriptfor now the expression for the price current is :
FormatCurrency(GetProducts.List.Current.PriceSum, "$", 2, ".", ",")
Hi,
Sorry I dont understand your question : "I asking how I can apply javascript login into a button to apply expression near by like the photo I uploaded how I can make the functionality in outsystem do you have any video, guide to understand how I can do that? "
1. Javascript login ?
2. if it button calling javascript function, you can use javascript widget for that. For more detail, you can check the training : https://learn.outsystems.com/training/journeys/javascript-595
The question is not related to Outsystems and more on javascript logic.
Basically you need converter value for USD <> EUR so when you press the currency button it will calculate the convertion.
Hey, Thanks for the fast answer.
My question is not related to javascript logic
I already programing function to change the USD to EUR and vice versa
I asking how I can apply javascript login into a button to apply expression near by like the photo I uploaded how I can make the functionality in outsystem do you have any video, guide to understand how I can do that?