View GravityForms Default Countries
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
'AF' => __( 'Afghanistan', 'gravityforms' ), | |
'AX' => __( 'Åland Islands', 'gravityforms' ), | |
'AL' => __( 'Albania', 'gravityforms' ), | |
'DZ' => __( 'Algeria', 'gravityforms' ), | |
'AS' => __( 'American Samoa', 'gravityforms' ), | |
'AD' => __( 'Andorra', 'gravityforms' ), | |
'AO' => __( 'Angola', 'gravityforms' ), | |
'AI' => __( 'Anguilla', 'gravityforms' ), | |
'AQ' => __( 'Antarctica', 'gravityforms' ), | |
'AG' => __( 'Antigua and Barbuda', 'gravityforms' ), |
View form-auto-submit.js
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 Auto-Submit Form on Page Load | |
* | |
* Allows you to auto-submit a form when the page loads, with a 1/2 second delay. | |
* https://gravityranger.com/auto-submit-form-page-load/ | |
* | |
* @instructions: | |
* | |
* 1. Change gform_ID# to your forms ID number (line 24) | |
* 2. Set the amount of time you'd like to delay the script (line 27) |
View gf-text-redirect-confirmaton.js
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 | |
* https://gravityranger.com/display-text-confirmation-before-redirecting-gravity-forms/ | |
* | |
* Used to display a text message after a form is submitted, but triggers a redirect 2 seconds after message is displayed. | |
* | |
* Instructions: Copy and paste lines 11-17 into a Gravity Forms text confirmaton. Make any necessary changes to the text or number of seconds, i.e 2000 = 2 seconds, (line 16). | |
* | |
*/ |
View gf-dual-confirmation.php
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 | |
/** | |
* GravityRanger Dual Confirmation (text + redirect) | |
* https://gravityranger.com/display-text-confirmation-before-redirecting-gravity-forms | |
* | |
* Uses the gform_confirmation hook to display a text confirmation message before triggering the redirect confirmation. | |
* This code is a modified version of the snippet provided on docs.gravityfroms.com | |
* |
View login-logout-shortcode.php
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 | |
/** | |
* GravityRanger Login Logout Shortcode | |
* | |
* Creates a login/logout shortcode button | |
* https://gravityranger.com/login-logout-shortcode-for-gravity-forms-membership-sites/ | |
* | |
* Used for creating a login/logout shortcode to be used with a WordPress website. |
View auto-advance-radio-select-fields.js
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
<script> | |
jQuery(document).ready(function($) { | |
$('input[type=radio], select').on('change', function() { | |
$(this).closest("form").submit(); | |
}); | |
}); | |
</script> |
View gf-product-default-quantity.php
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_field_value_default_quantity', 'gr_default_qty' ); | |
function gr_default_qty() { | |
return 0; // change this number to your desired default quantity | |
} |
NewerOlder