BUTTON HAS VALUE COMBINE() & CHANGES PAGE

Hello guys I have a button on the site that has a value combine export function and I need the button to change the page to the next step of the check out process also.


I added this code to the export function declaration but removed it since it didn’t work. I also tried adding the link on the button without the code, also didn’t work.

$w(“#myElement”).link = “http://wix.com”;
$w(“#myElement”).target = “_blank”;

^^ I obviously changed this to my information lol I didn’t leave the pre written text.


Now another thing, I wanted to have this total appear on another page (the check out page). If I took the “#servicestotal” box and added it to the other page will it still fill out?

Hello,

To add an event to a button open the properties panel (found in tools at the top), find the event you want (onClick) and press the plus sign next to it to add an event. After this open the code section and a predefined function will be there waiting for you to input some code telling it what to do.
More here - Velo: Reacting to User Actions Using Events | Help Center | Wix.com

As for the other question: You can store the total cost in local storage and retrieve it whenever is necessary

Look here for how - wix-storage-frontend - Velo API Reference - Wix.com

Goodluck,
Majd