Hello, so I looked around for a while on the forums and I haven't quite seen someone asking about my current issue.
Basically I have a form on the homepage of my site that is just collecting an email field. Once the user hits the join us button I want the button to redirect them to a join us page that will have the full join us form and populate the email field.
The site is not live so I cannot link to it, and I was given this snippet of code.
add_filter('query_vars', 'parameter_queryvars' );
function parameter_queryvars( $qvars ) {
$qvars[] = 'emailsignup';
return $qvars;
}
add_filter("gform_pre_render_7", "populate_email");
function populate_email($form_meta) {
$form_meta["emailsignup"] = $_GET["emailsignup"];
return $form_meta;
}
I slightly understand the populate function, I just don't understand where we name the field "emailsignup". The queryvars function I am totally lost on and don't really understand how to send that data in the first place. I'm assuming it is something that I must edit in the gui portion of gravity forms but I am not sure what. Any help would be much appreciated, thanks.