I have a form, with some user input fields (email, phone etc) and an upload button where users can upload a file. I am pre-filling all the data in the form (using my own backend api, which I have integrated using wix-fetch). Form will be editable. So if some information is outdated, user can update the info and hit submit. If everything is up-to-date, user will just hit submit. Submit is connected to wix dataset, which will update some info in dataset, and remaining data will be sent to my backend api using wix-fetch.
I am facing following problems, and need help for -
- How do I show pre-filled file (if I have) in the file upload button
- If the user does not make any changes, the submit is not updating any data on the backend in the wix-dataset.
- If I have to use wix-dataset api (instead of pre-built submit), how do I save user-uploaded/already prefilled file to my dataset.
PS - each submit has to create a new row in dataset.