Not able to submit Pre filled items with wix submit

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 -

  1. How do I show pre-filled file (if I have) in the file upload button
  2. If the user does not make any changes, the submit is not updating any data on the backend in the wix-dataset.
  3. 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.

Hello

  1. Get the datasets current item and set a text element under the button to the uploaded files name
    $w(‘#text’).text = $w('#dataset).getCurrentItem().uploadFile

  2. The database should not update if there is nothing to update, or am I missing something?

  3. datasets are connected to a collection and are used to connect collection to page. you would need to insert into the collection - read more here about that .

Goodluck!