How to redirect users to a dashboard after Memberstack profile form submission in Webflow? Answered

Post author
Damon Delgado

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

  • Comment author
    Jayess

    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?

    0
  • Comment author
    Julian Galluzzo

    I agree with JS - that should work!

    0
  • Comment author
    Damon Delgado

    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?

    That doesn’t seem to affect anything. The form is currently submitting via AJAX and does not redirect and gives me this prompt when submitted.
     
    0
  • Comment author
    Jayess

    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?

    0
  • Comment author
    Julian Galluzzo

    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>
    0
  • Comment author
    Damon Delgado

    Hi Julian Galluzzo and Jayess sorry for the delay in responding. This redirect worked well. Really apprecaite the help.

    0
  • Comment author
    Jayess

    Thanks for updating us! It was all Julian 🪄✨ Happy Wednesday Damon!

    0
  • Comment author
    Julian Galluzzo

    Damon Delgado No problem!! Glad it worked 😀

    0
  • Comment author
    Brian Fontenot

    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?

    0

Please sign in to leave a comment.