Home › Forums › Quform WordPress › Enable Automatic Filling
- This topic has 6 replies, 2 voices, and was last updated 11 years, 6 months ago by
Ally.
- AuthorPosts
- March 8, 2014 at 3:22 pm #9011
ontercore
ParticipantHi,
I want to be able to insert a variable in the recipient field to combine with an set email :
{Input Data1}@company.com
OR
Alternatively can I add ‘@company.com’ to my form element options somehow.
Cheers
March 10, 2014 at 10:50 am #9039Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 10, 2014 at 11:09 am #9046ontercore
ParticipantYes please send through sample code.
March 10, 2014 at 11:43 am #9050Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 10, 2014 at 11:54 am #9051ontercore
ParticipantHI Ally,
Unfortunately there is a syntax error.
I’m getting a problem in dreamweaver and on the wordpress site.
The issue is highlighted here ->
}return $mailer;
}March 10, 2014 at 12:09 pm #9052ontercore
ParticipantHi Ally,
Thank you so much for your help.
This worked out.
function my_custom_recipient($mailer, $form, $attachments)
{
$val = $form->getValue(‘iphorm_1_1’);if ($val) {
$mailer->ClearAddresses();
$mailer->AddAddress($val . ‘@company.com’);
}return $mailer;
}
add_filter(‘iphorm_pre_send_notification_email_1’, ‘my_custom_recipient’, 10, 3);March 10, 2014 at 12:19 pm #9053Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.