So I have 5 text input boxes that link to 5 different fields in a dataset that is displayed in a table on one of my pages. I’ve created a “submit” button and would like to link it to all 5 user input elements, so that a user can fill out the information for each field and then submit all the data at once. However, under “Label connects to” I’m only seeing the option to connect to one user input element per button. Is there a way for me to accomplished what I want?
You can do it through code, something like this…
import wixData from ‘wix-data’;
let toInsert = {
“title”: “Mr.”,
“first_name”: “John”,
“last_name”: “Doe”
};
wixData.insert(“myCollection”, toInsert)
.then( (results) => {
let item = results; //see item below
} )
.catch( (err) => {
let errorMsg = err;
} );