Using wix the code works perfectly in preview mode after publishing the code doesn't work

The database is not getting updated after publishing.

Have you checked your database collection permissions?

Am I in the correct path?

1 Like

But still its not working.

Did you publish changes? Close out all old sessions of your website? Refresh or open new tab after publishing?

Did you make sure your submit button didnā€™t accidentally get disconnected? Or any of the inputs did not get accidentally disconnected? (Trust me, it happens. One time during a live video training session with a client she had to reconnect everything 3 times and she was beyond furious. And the whole session was recorded. Glitches just happen.)


This is the settings for submit button. Is it fine?

Nope. It needs to be Write Only, to collect submissions.

Changed it, but still facing the same issue.
ā€œUserError: datasetApi ā€˜saveā€™ operation failedā€, getting this error in preview mode. Any idea how to fix it,

If the error states ā€˜user errorā€™ then it is possible a required field was skipped, or a format was not valid and typed incorrectly.

At this point all I can give you are guesses because I have not idea how your page and settings are setup.

I wish there was some sort of chat function in this forum or a better way to communicate!

Well, if all else fails and you still need assistance, you can request me via the Wix Marketplace. I will leave my profile link here: Code Queen - Wix Marketplace