How to redirect users to a dashboard after Memberstack profile form submission in Webflow? Answered
Hello! Is it possible to do a custom redirect to another page after submission of the profile form data-ms-form="profile" ? I am using this as a reference: https://docs.memberstack.com/hc/en-us/articles/7785751124379-Create-Profile-Forms-in-Webflow-Password-reset-change-email-and-custom-fields-#he[…]g-2. It’s working but I would like to send the user to a dashboard page.
Comments
9 comments
Hello Damon 👋
Great question!
You could also try adding a re-direct url directly to your profile form and see if that works?
Depending on how you’ve made the member-specific page or if the dashboard page is a general page?
I agree with JS - that should work!
Hi Jayess and Julian Galluzzo sorry for the late reply and thank you for responding. By adding the redirect URL directly do you mean in the form settings?
wiki-> Ajax is not a new technology, nor is it a new language. Instead, it is existing technologies used in a new way 🥳
Julian Galluzzo Do you have any ideas?
Damon Delgado try this script to force a redirect with javascript
<script> const form = document.getElementById('survey-form'); form.addEventListener('submit', (event) => { event.preventDefault(); window.location.href = '/your-url-here'; }); </script>Hi Julian Galluzzo and Jayess sorry for the delay in responding. This redirect worked well. Really apprecaite the help.
Thanks for updating us! It was all Julian 🪄✨ Happy Wednesday Damon!
Damon Delgado No problem!! Glad it worked 😀
This script doesn't seem to function if you have an action listed in Form Block Settings... Anyone have an idea as to how to make this work?
Please sign in to leave a comment.