[Does anyone know how I could set the value of the redirect URL from the before submit plugin location?
I build redirect URLs on the fly based in part on form field selections as well as a db query. So for example, I will need to redirect a user to
Code:
http://site.com/file.php?example=(question1result)&example2=(queryresult)
Nevermind... figured this one out.
Looks like the variable $form[redirecturl] is used for the redirect. I can simply set this in the plugin like below, where $qo_1 is the answer to question 1 on the form... Hope someone finds it useful.
Code:
$form[redirecturl = "http://site.com/file.php?example=".$qo_1."&example2=".$queryresult;