Sending to url in form behavior, problem with ampersand
-
We would like to send the form submitter to url after submission, but the url includes an ampersand for a query delimiter, and that is getting changed to “&” which prevents the link form working. How can this be fixed?
The url is actually provided in a hidden field. Then, in the form behavior, we are using “Redirect user to a URL” and the Redirect URL field has this in it:
{hidden-4}&promo=SponsorCode
I’ve tried substituting the ampersand code ‘%26’ in the above, but that gets ignored and dropped entirely. Do I need to intercept the form via a Forminator API function and fix it there? If so, can you suggest a function? I’m not sure what hook could be used to intercept before the user gets redirected.
Thanks for any help!
- The topic ‘Sending to url in form behavior, problem with ampersand’ is closed to new replies.