I’m using a Webflow form to submit customer signup details to a Google Adwords agency. In this signup - the customer picks a monthly plan and a monthly spend. The form is submitted and the customer is redirected to an external subscription service where they submit their credit card details for payment.
The redirect to the external service needs to be dynamic - depending on their selection of plan and ad spend - it will redirect to a different subscription signup URL. I’ve been able to use javascript to change the form “redirect” url. However, even though the form redirect URL has been changed, it still redirects to the original form redirect URL i…e the redirect URL which was there when the page loaded. It seems that the redirect url which is specified on page load, is the URL which is used regardless of if it’s changed or not after page load.
Can anybody help with this or has anyone any other suggestions on how i can achieve this dynamic redirect?
I can change the form action dynamically using javascript so I was thinking about using an external form service and creating a separate form handler (i.e. a separate form action URL) for each option. However, this would mean making 20 separate form handlers so I’m slow to do this.
In this instance, I still wanted the form submission
However, I did find an issue were the redirect would fire before the form submission was processed (which caused a form error but still redirected). So I increased the delay, which seems to have fixed the issue.
Hi @samliew, this was the solution I tried to implement originally i.e. leaving redirect control with Webflow and just dynamically updating the form attributes with the redirect link
Any reason this shouldn’t work?
As you can see from my reply on that thread, it no longer seems to work…