Hi
I have created a request form, and it has been linked to a database, which I need is how do I get user data such as name and email automatically in the text fields without the user adding it again?
Use getCurrentItem to get all the data or a fields data for that user to populate certain fields on your page, then if needed use setFieldValue or setFieldValues to then set those inputs in a new dataset and save for saving them in code.
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#getCurrentItem
$w(‘#dynamicDataset’).getCurrentItem(); // for all that row of data…
$w(“#dataset1”).getCurrentItem().fieldName; // for a specific field in that row only…
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFieldValue
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFieldValues
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#save