Reply To: Pop up form with url

Home Forums Quform WordPress Pop up form with url Reply To: Pop up form with url

#29780

chaosm
Participant

Hi.
Thanks for your reply. How do i modify the code to work also with the second form?
For example, now i have two forms

form-1
and
form-2

and 2 menu id
#menu-item-17322
and i would build a new menu which will take a new id

now i use this

add_action(‘wp_footer’, function () {
if (!class_exists(‘Quform’)) {
return;
}

echo do_shortcode(‘[quform_popup id="1"]‘);
?>
<script>
jQuery(function ($) {
$(‘#menu-item-17322’).click(function () {
$(‘.quform-popup-link-1’).click();
return false;
});
});
</script>
<?php
});

how could i add the second form and link with the new menu?
Thanks

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy