Forum Replies Created
- AuthorPosts
Bobert
Participantwas this ever added? I think this should be a fundamental part of the plugin..
July 30, 2018 at 6:20 pm in reply to: Capture info from unsubmitted form and passing info from normal page to form #26438Bobert
Participant?
July 24, 2018 at 10:58 pm in reply to: Capture info from unsubmitted form and passing info from normal page to form #26363Bobert
ParticipantSo,
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);June 1, 2018 at 4:12 am in reply to: Pass name, and e-mail address from one page to another (Multipage) #25916Bobert
ParticipantWorks 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’] });
};
<?phpwp_add_inline_script(‘google-maps’, ob_get_clean(), ‘before’);
});February 8, 2018 at 12:58 am in reply to: Capture info from unsubmitted form and passing info from normal page to form #24266Bobert
ParticipantThanks 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?
Bobert
ParticipantI 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…
- AuthorPosts