This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gets Gravity Forms via form title. | |
* | |
* @access public | |
* @param string $title (default: null) - Form title to search for | |
* @param bool $return_form (default: false) - Return form object or form ID | |
* @return array - Array of form IDs or form objects (based on $return_form value) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Forms Easy Form Population | |
* | |
* Populate form fields with values from a previous form entry. | |
* | |
* @version 1.0 | |
* @author Travis Lopes <tl@travislop.es> | |
* @license GPL-2.0+ | |
* @link http://travislop.es/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Forms Easy Form Population | |
* | |
* Populate form fields with values from a previous form entry. | |
* | |
* @version 1.0 | |
* @author Travis Lopes <tl@travislop.es> | |
* @license GPL-2.0+ | |
* @link http://travislop.es/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'gform_enqueue_scripts_10', 'enqueue_dropdown_script', 10, 2 ); | |
function enqueue_dropdown_script( $form, $is_ajax ) { | |
wp_register_script( 'jquery-dropdown', 'js/jquery.dropdown.js', array( 'jquery' ) ); | |
wp_enqueue_script( 'gform-jquery-dropdown', 'js/gravityforms.dropdown.js', array( 'jquery', 'jquery-dropdown' ) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function( $ ) { | |
$( '#input_10_6' ).dropdown(); | |
} )( jQuery ); |
NewerOlder