So, what I want to do is when you want to enter a form and you enter an existing name in it, it will change the other informations.
In summary, I want to try and remove the element from the database and recreate another one if the name entered in the field is the same as that element’s name.
Hope that makes sense. Thank you !
No need to delete and then insert a new one. You can update the current record.
If you are using a dataset , then you can use the dataset’s .save() function.
If you are using a wix-data query, then you can use wix-data.update() or wix-data.save() .
Yea but using the save function, you need to select the name using some buttons and it’s impractical.