Deleting a Record Doesn't Refresh?

Hi folks,

I have made a form to edit my collection. I can change the text in the form fields and click “Save”, that works.

I also have a “Delete” button on the same form. When I click the “Delete” button all the fields go grey and stall. I get no success or error message. When I click “manage” collection and review the data, I can see the correct record has been deleted.

Why the stall? Do I need to add some kind of refresh before I save?

Thanking you in advance
Sylvia

Is your save button a submit button through the Wix Editor as this submit button provides you with already setup pass and fail messages that you can use, however it can’t be mixed in with custom code for it too.
https://support.wix.com/en/article/adding-a-submit-button-to-your-form

Or did you just use a normal button and use code to save your user inputs as this way you will not get any pass or fail messages unless you set these up yourself in your code as well.

As for when you run the delete code, then yes it will do that and show nothing if you have used code for your delete button and not add anything else to it like error messages or a dataset refresh afterwards, especially if you are showing your data in a table or repeater for example etc.

Check out the Wix Data and Wix Dataset API References for more info on remove, refresh, save and more.
https://www.wix.com/corvid/reference/wix-data.html
https://www.wix.com/corvid/reference/wix-dataset.html