Integrating jQuery Show/hide Script
-
I wish to be able to provide conditional show/hide scripting in a CF7 form so that when a user selects an option in a field, hidden sub-options can be called. I have been able to do this using Fancybox and calling the CF7 form from a page but I cannot get this to work just using the EM shortcode.
First off, here is a link to the methodology that has worked for me and others in the past: http://ww.wp.xz.cn/support/topic/plugin-contact-form-7-this-is-how-to-showhide-fields-with-jquery?replies=44
Please note that the scripting needs to call the following code:
<!– Add jquery script to support Conditional Forms–>
<script type=”text/javascript” src=”<?php echo get_stylesheet_directory_uri(); ?>/js/1.7.1/jquery-1.7.1.min.js”></script>
<script type=”text/javascript” src=”<?php echo get_stylesheet_directory_uri(); ?>/js/hidefieldsScript.js”></script>where this code is placed in the header.php file. It also works when it is in the footer.php file.
When I try this with EM though, it does not allow the modal to open let alone allow the show/hide script to function.
Do you have a suggestion or an alternate method which will allow me to make this work?
I am sure this is something that would be of great benefit to others.
Thanks again in advance.
The topic ‘Integrating jQuery Show/hide Script’ is closed to new replies.