Question:
[Velo syntax ]
Product:
[Wix Editor.]
What are you trying to achieve:
[Multi-State Box.
Added PREVIOUS and NEXT buttons.
Trying to return to another state]
What have you already tried:
[Viewed Videos ]
Additional information:
[Clicking on RUN in the Velo script yields an error .
The code in the editor has underlines and is problematic]
$w(‘#nextButton’).onClick((event) => {
console.log(“Buttom was clicked!”);
})
Build Log
deploymentId: a2cf9632-8c4a-43d4-b9ef-ca5009db4097
1/21/2025, 11:10:16 AM
Status: Error
[/pages/Home.ijbu0.js]: public/pages/ijbu0.js: Unexpected token, expected “,” (8:0)
6 |
7 | //*{
8 | $w(‘#nextButton’).onClick((event) => {
| ^
9 | console.log(“Buttom was clicked!”);
10 | })