# Submit Redirect to Regular Page Not Redirecting

**URL:** <https://forum.wixstudio.com/t/submit-redirect-to-regular-page-not-redirecting/10712>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [August 28, 2018, 1:12am UTC](https://forum.wixstudio.com/t/submit-redirect-to-regular-page-not-redirecting/10712 "2018-08-28T01:12:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![web](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/web/32/3801_2.png) [@web](https://forum.wixstudio.com/u/web)\
**Post date:** [August 28, 2018, 1:12am UTC](https://forum.wixstudio.com/t/submit-redirect-to-regular-page-not-redirecting/10712/1 "2018-08-28T01:12:28Z")

</div>

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](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

 ![](https://us1.discourse-cdn.com/wix/original/3X/a/6/a6d1e210b1471347a16edc39ae72c6fe4ca99fd4.png)

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

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

No luck at all. **What am I missing?**

Thank you most kindly!  
Cynthia-

---

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [August 28, 2018, 2:15am UTC](https://forum.wixstudio.com/t/submit-redirect-to-regular-page-not-redirecting/10712/2 "2018-08-28T02:15:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![web](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/web/32/3801_2.png) [@web](https://forum.wixstudio.com/u/web)\
**Post date:** [August 28, 2018, 3:08am UTC](https://forum.wixstudio.com/t/submit-redirect-to-regular-page-not-redirecting/10712/3 "2018-08-28T03:08:02Z")

</div>

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-
