I need to create a button in a product quiz on my website that will collect a one word data entry for the database. There will be 2 buttons, and if they click one, it will send the word "one" to the database vs if they click two, it will send the word "two" to the database.
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
You will need something in this direction.....
$w.onReady(function () { $w("#YourDatasetIDhere").onReady( () => { $item("#YourButtonIDhere").onClick((event) => { //YOUR CODE HERE....for example.... $w("#YourDatasetIDhere").setFieldValue("title", "New Title"); $w("#YourDatasetIDhere").save(); }) }) })