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 ); |
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
<?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
/*** | |
* This code snippet will automatically open the field settings | |
* pane and navigate to the desired tab on page load. | |
* | |
* To use, just add the tab to the hash of the page URL: | |
* http://example.com/wp-admin/admin.php?page=gf_edit_forms&id=1#tab=gform_tab_1 | |
* | |
* By default, the first field in the form will be opened. | |
* To open a different field, add a field ID parameter: | |
* http://example.com/wp-admin/admin.php?page=gf_edit_forms&id=1#tab=gform_tab_1&field=4 |
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
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) { | |
if ( formId == 12 && fieldId == 1 ) { | |
optionsObj.maxDate: -1 | |
} | |
return optionsObj; | |
} ); |
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 | |
require_once GFCommon::get_base_path() . '/tests/gravityforms-factory.php'; | |
// Get forms. | |
$forms = GFAPI::get_forms(); | |
// Loop through forms. | |
foreach ( $forms as $form ) { |
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_filter( 'fg_entryautomation_export_email_message', 'add_payment_summary', 10, 4 ); | |
function add_payment_summary( $message, $settings, $form, $file_name ) { | |
// Get search criteria. | |
$search_criteria = fg_entryautomation()->get_search_criteria( $settings, $form ); | |
// Get entries for search criteria. |
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_filter( 'fg_entryautomation_export_email_subject', 'subject_date_range', 10, 4 ); | |
function subject_date_range( $subject, $settings, $form, $file_name ) { | |
// Get search criteria. | |
$search_criteria = fg_entryautomation()->get_search_criteria( $settings, $form ); | |
// Add date range to subject. |
OlderNewer