Submit Redirect to Regular Page Not Redirecting

My apologies in advance. There are a number of postings with this SAME issue. I have walked through no less that 5 of them and have tried every suggestion, to no avail.

So, once again:

PAGE in question:
https://www.mindfulmoment.be/practitioner-add

I have a simple form that, on submit, is adding a record to a collection. The ADD works fine

I have set the LINK for the submit button to redirect to a thank you page (/dankje).
It will not redirect.

I have tried using the LINK setting for the button with both PAGE and WEBSITE as the destinations

AND TRIED, in the code:
button4.onClick function w/ wixLocation.to (“/dankje”)

AND
button4.onClick function w/ wixLocation.to (“https://www.mindfulmoment.be/dankje”)

No luck at all. What am I missing?

Thank you most kindly!
Cynthia-

Cynthia, I remember this problem has come up many times. It seems that the problem is that is you have a Submit button bound to a dataset AND want it to do something else afterwards. That does not go well. The standard answer here (and it works) is:

  1. unbind the button from the dataset, turning it into a regular button
  2. in the button´s onClick-event, do a .save() of the dataset
  3. use wix location-to to redirect to another page (dankje)

If this doesn´t make any sense, let me know, but show the code, that´s always more helpful.

That makes total sense, Giri… thank you. I will try that out in the morning - it is late here.

I thank you most kindly for taking the time to enlighten me with this solution. I’ll let you know how it goes.

With kind regards, Cynthia-