Form submission redirect > code solution

Hey, might be helpful for you if you will need a redirect after form submission.
Just set-up a new js code in code library.

mdEvents.Fn('catch', 'forms.success', function(data)
{
  /* If you have multiple forms, check the id of form to match */
  if(data.form.id !== 99) { return; }
  window.location.href = '/diky';
});
2 Likes

@petrbilek Hi Petr, would you mind helping me out? I also want to make a redirect. Can you explain more about how to insert this code and what to edit? I am not that familiar with code and it seems that you are quite an expert. I want the form to redirect to mydomain.com/nearlydone.

Or can the “Action” URL be used as redirect? Didn’t find any info on that.

image

2 Likes

@Pakic @petrbilek YOU GUYS ARE THE BEST! Thanks for the video @Pakic, very helpful.

Works perfectly.

1 Like

@Pakic Could you provide the link to the Loom video for form submission redirect?
(the link in the post is broken)

PS: found the video link: Loom Message - 26 September 2023 | Loom