Home › Forums › Quform WordPress › Pop up form with url › Reply To: Pop up form with url
August 9, 2019 at 2:08 pm #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