is there a simple way to load the popup with visibility block but hiding it
-
Hi, I am trying to use Popup Maker to open a contact-form-7 form
In the contact form I use the datetimepicker plugin for contact-form 7The problem is: the datetimepicker is javascript code which apparently activates the functionality only when the form is visible on load, because it hooks in over the class name of the field
I am assuming that, as the popup loads with visibility:none, the javascript code does not get attached to the field, so when I open the popup the functionality does not work
The obvious workaround would be to edit the css in the plugin file so that the popup loads with visibility:block, ad move it to a invisible zone, like z-index:-300 or top:100% but off course this is not desired as it breaks when plugin is updated.
I was trying to include css & javascript code in the footer to create a workaround, but until now unsuccessful.
`<style>
#pum-198{display:block !important;top:100%;}
</style>
<script>
jQuery(document).ready(function() {
jQuery(‘.popmake-198’).click(function(){
jQuery(‘#pum-198’).attr(“style”, “top:0;”);alert(“clicked”);
});
});
</script>Have you another idea on how to reach that the mentioned functionality gets applied to the formfield?
it does not work here:
https://mgautos.cl/2022/contacto/
popup trigger is on the left column at the bottom “Solicite su visita”here you see the form working
https://mgautos.cl/2022/The page I need help with: [log in to see the link]
- The topic ‘is there a simple way to load the popup with visibility block but hiding it’ is closed to new replies.