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 | |
# Basic Usage | |
new GW_List_Field_As_Choices( array( | |
'form_id' => 1, | |
'list_field_id' => 2, | |
'choice_field_ids' => 3 | |
) ); | |
# Enable Sorting of Choices Alphanumerically |
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 Field Info Tab | |
* http://gravitywiz.com | |
* | |
* Adds a summary of your fields as a tab on the form settings screen; includes field ID, label and field type. | |
* | |
*/ | |
class GWFieldInfo { | |
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 Wiz // Gravity Forms // Auto Populate | |
* | |
* Automatically populate a form with data based on an entry ID or an array of custom data. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
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 Wiz // GP Unique ID // Share a global unique ID across all forms | |
*/ | |
add_filter( 'gpui_unique_id_attributes', 'gwiz_global_unique_id', 10, 3 ); | |
function gwiz_global_unique_id( $atts, $form_id, $field_id ) { | |
if( $atts['type'] != 'sequential' ) { | |
$atts['form_id'] = 1; | |
$atts['field_id'] = 1; |
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 Wiz // Gravity Forms Populate With Entries | |
* | |
* Populate choice-based fields (i.e. drop downs, radios, checkboxes) with data from Gravity Form entries. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
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 | |
/** | |
Plugin Name: Gravity Forms Cookies | |
Plugin URI: http://ounceoftalent.com/ | |
Description: Saves the query string parameters from a users visit to a cookie and allows these values to be populated via Gravity Forms' Dynamic Population feature. | |
Version: 1.5 | |
Author: David Smith | |
Author URI: http://ounceoftalent.com | |
License: GPL2 | |
*/ |
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 | |
// CREDIT: http://pastebin.com/4J7z8y2X | |
// allow HTML in a specific form field | |
// update the '344' to the ID of your form | |
add_filter( 'gform_allowable_tags_344', 'hearts_welcome_here', 10, 2 ); | |
function hearts_welcome_here( $allow_html, $field ) { | |
// update the '2' to the ID of your field | |
if( $field['id'] == 2 ) | |
return true; |
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
/// GWS TABLE FILTER | |
// CREDIT: http://pastebin.com/u6yN846V | |
// usage: [gwstable form=17 field=1 value='Workshop A' return=2] using numeric IDs | |
add_shortcode('gwstable', 'gws_tablefilter'); | |
function gws_tablefilter($atts) { | |
extract(shortcode_atts(array( | |
// set defaults | |
'form' => '403', | |
'field' => '1', |
OlderNewer