Enable Automatic Filling

Home Forums Quform WordPress Enable Automatic Filling

This topic is: not resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9011
    ontercore
    Participant

    Hi,

    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

    #9039
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #9046
    ontercore
    Participant

    Yes please send through sample code.

    #9050
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #9051
    ontercore
    Participant

    HI 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;
    }

    #9052
    ontercore
    Participant

    Hi 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);

    #9053
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy