Adds a custom RAW field to output custom Javascript or HTML in ninja forms. REQUIRES NINJA FORMS.
Author: | Eduardo Aranda (profile at wordpress.org) |
WordPress version required: | 3.0.1 |
WordPress version tested: | 3.4.2 |
Plugin version: | 1.0 |
Added to WordPress repository: | 24-11-2014 |
Last updated: | 20-11-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | |
Total downloads: | 771 |
Active installs: | 40+ |
Click to start download |
REQUIRES NINJA FORMS
This plugin adds a custom RAW field to output custom Javascript or HTML in field settings.
Example: Add a JQuery to show/hide fields depending on the user input.
Add a field and enter this code (change the IDs)
<script type="text/javascript">
/*document ready waits the page to load*/
jQuery(document).ready(function() {
/*when this checkbox is checked, display another field*/
jQuery('#ninja_forms_field_106_0').change(function () {jQuery("#ninja_forms_field_109_div_wrap").toggle(this.checked);}).change();
});
</script>