I want to use the enfold Form.
Setuzp of 1 form:
– name
– topic
– ….
You will come from an entrypage and select there the company you wand to select. I will send the companyid via GET and want to change the “to Address” based on the Get paramenter.
Can I hook that directly into the form, or need I pass the paramenter somehow until the form is send?
Which hook can I use for that?
Regards
Stefan
Hi Stefan,
Please feel free to request – or vote if already requested – such feature on Enfold feature request form.
For time being, please consider using more advanced contact form plugins such as – https://wordpress.org/plugins/contact-form-7/. You can find documentation here – https://contactform7.com/docs/
Best regards,
Yigit
or use the filters ‘avf_form_send’ for others that search for the hook.
easy archivable.
at the end, I used a little diffrent hook:
add_filter('avf_form_sendto','avia_change_mail_subject');
function avia_change_mail_subject($to){
$toid = intval($_GET['fid']);
if ($toid != '0') { $to = array(get_post_meta($toid, 'email', true)); }
return $to;
}
So I change based on a int variable the to adress. Topic can be closed.