i use a button and connect it to a dataset as next-item and each field in the form is connected to a certain field in the collection, and i show one collection at a time.
-
I cannot connect in the form the ID field as it is system field .
-
how can i get the ID field without using the wixData.query(“mydata”) because I’m using the next-item field and I don’t want to change the hole logic of the page.
-
after showing the fields of the current collection the user can change data and save it triggring a function using wixData.update(item{…}) but i dont have the _id and get an error.
so i need the ID _id to use it to update the current collection.
any help