Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Manually resend notification emails #26439
    Bobert
    Participant

    was this ever added? I think this should be a fundamental part of the plugin..

    Bobert
    Participant

    ?

    Bobert
    Participant

    So,

    I have used this, and it works good. But only sends to the main e-mail contact of wordpress..

    Is there any way I can specify in this code which e-mails to send to? Or any way to have it send to the e-mails in the form? This seems to have changed with the new update.

    add_action(‘quform_pre_validate_1’, function (array $result, Quform_Form $form) {
    $page = $form->getCurrentPage();

    if ($page->isFirstPage() && $page->isValid()) {
    $config = array(
    ‘subject’ => ‘First page data’,
    ‘html’ => ‘{all_form_data}’
    );

    $notification = new Quform_Notification($config, $form, Quform::getService(‘options’));
    $notification->send();
    }

    return $result;
    }, 10, 2);

    Bobert
    Participant

    Works perfectly!

    One more question!

    I’m using this to use google maps to the form.

    However, I need to add it to TWO text fields. How would I go about doing this?

    add_action(‘wp_enqueue_scripts’, function () {
    $apiKey = ‘keyhere’;

    wp_enqueue_script(‘google-maps’, “https://maps.googleapis.com/maps/api/js?key={$apiKey}&libraries=places&callback=initAutocomplete”, array(), false, true);

    ob_start();
    ?>
    window.initAutocomplete = function () {
    new google.maps.places.Autocomplete(document.querySelector(‘.quform-field-2_90’), { types: [‘geocode’] });
    };
    <?php

    wp_add_inline_script(‘google-maps’, ob_get_clean(), ‘before’);
    });

    Bobert
    Participant

    Thanks Ally,

    Is there any way to change ‘subject’ => ‘First page data’, To say, the first and last name of the person submitting it. So its easier to find in emails?

    in reply to: Date calculation possible? #23732
    Bobert
    Participant

    I need something similar.

    A date (birthday) field, that verifies that the birthdate is 18 years or older. If not, it will not let you continue…

Viewing 6 posts - 1 through 6 (of 6 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy