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 // Multi-Date Picker Field | |
* https://gravityranger.com/gravity-forms-multi-date-picker/ | |
* | |
* Allows selection of multiple dates in a single Gravity Forms text field. | |
* | |
* Step-by-Step Tutorial: https://gravityranger.com/gravity-forms-multi-date-picker/ | |
* | |
* Instructions: |
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 // Limit Coupine Usage Per Customer Based on Email Address | |
* https://gravityranger.com/gravity-forms-limit-coupon-per-customer/ | |
* | |
* Snippet will compare the email address to the coupon entered if the email has already | |
* been used validation fails, and a custom validation message is shown. | |
* | |
* Step-by-Step Tutorial: https://gravityranger.com/gravity-forms-limit-coupon-per-customer/ | |
* |
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 // Remove fields from entry details page | |
* https://gravityranger.com/ | |
* | |
* Using a CSS class 'hide-from-entries' you can prevent fields from showing in the entry | |
* details page. Add the class to the fields Custom CSS Class area. | |
* | |
* Step-by-Step Tutorial: https://gravityranger.com/gravity-forms-hide-from-entries/ |
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
/** | |
* Gravity Ranger // Gravity Forms // Change radio button choice when adding value to another field | |
* https://gravityranger.com/gravity-forms-fancy-donation-form | |
* | |
* This snippet will change a selection in a radio button field when entering a value to another field. | |
* Intended for a donation form with a price select field and and a user defined price field. | |
* | |
*/ | |
<script type="text/javascript"> |
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 | |
//Copy everything below this line | |
/** | |
* | |
* Mark entry as spam if all checkbox choices are selected | |
* | |
* This is a unique use case, but if you have a checkbox that selecting all choices is unlikely you can use this as a spam prevention method. | |
* | |
* |
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
//Copy everything below this line | |
/** | |
* | |
* Conditionally Disable Radio Button Field | |
* | |
* This snippet disables a radio button field when a specific choice is selected in another radio button field. | |
* It will even clear the choice selection of the disabled field. | |
* See the link below for instructions. | |
* |
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
/** | |
* GravityRanger Limit Checkboxes | |
* | |
* This snippet allows you to limit the number of checkboxes that can be checked, and grays out and disables all other choices when that number is reached. | |
* | |
* | |
* @instructions: | |
* | |
* 1. Change 2 on line 24 to the number of checkbox choices you want the user to be able to select. | |
* 2. Change the 1_5 on line 27 to the formID_fieldID of your checkbox field. |
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 | |
//copy everything below this line | |
add_filter( 'gform_notification', 'change_notification_email', 10, 3 ); | |
function change_notification_email( $notification, $form, $entry ) { | |
if ( $notification['name'] == 'Admin Notification' ) { | |
// toType can be routing or email |
NewerOlder