Link: Change Default Gravity Forms Ajax Spinner
Thomas Griffin posted a handy little tutorial over on his new site Code with WP on his blog. This tutorial will walk you through the process of updating the ajax spinner for ajax enabled forms. Check...
View ArticleSubtotal Merge Tag (for Calculations)
View this code snippet on GitHub. Currently, there is no easy way to get the current total (let’s call it the subtotal) of the form for use in calculations. It’s possible but you’ll have to enter all...
View ArticleInclude Post Permalink in Gravity Forms Confirmation or Notification
View this code snippet on GitHub. There are two methods for generating a link to a post created by Gravity Forms. Both methods are intended for use in Gravity Forms’ confirmations and notifications...
View ArticleRequire All Columns of List Field
When you mark a List field as required, only a single input from any column is required. What if you want every input in every column to be required? Here is a snippet that let’s you do it. View this...
View ArticleRequire an Existing Value for Submission with Gravity Forms
View this code snippet on GitHub. Let’s say a reference number is generated on Form A (using something like GP Unique ID) for the user’s order (represented by a Gravity Form entry). The reference...
View ArticleBetter Limit Submission Per Time Period by User or IP
View this code snippet on GitHub. This snippet replaces both the Limit User to One Submission Per Time Period and the Limit IP to One Submission Per Time Period snippets. How do I get started? Gravity...
View ArticleChanging Your Gravity Forms Field IDs
View this code snippet on GitHub. Getting Started Open the desired form in the Form Editor. Open your Browser Console Chrome: https://developer.chrome.com/devtools/docs/console Firefox:...
View ArticleDisable Submission when Pressing Enter for Gravity Forms
View this code snippet on GitHub. I was asked an interesting question on Twitter the other day. @GravityWiz • Have a snippet or plans for a perk that would prevent submission when users hit the 'Enter'...
View ArticleGravity Forms: Require Unique Values for Different Fields
View this code snippet on GitHub. Have you ever needed to collect a personal phone number and an emergency phone number? Or maybe you need to collect a minor’s email address and also their...
View ArticleCreating Coupons for GF Coupons Add-on with Gravity Forms
View this code snippet on GitHub. Submitting a Gravity Form is a powerful thing. After the the submit button is pushed, any number of things could happen. You could register the submitter as a user on...
View ArticleCustomizing the Multi-File Merge Tag
Post generated with this snippet View this code snippet on GitHub. Gravity Forms v1.8 adds support for the much desired multi-file uploads field. Just add a File Upload field to your form, check the...
View ArticleBetter Inventory with Gravity Forms
Let’s dive into the code first. View this code snippet on GitHub. How do I install this snippet?Easy peasy. Just copy and paste the code above into your theme's functions.php file. Do I need to modify...
View ArticleRename Uploaded Files For Gravity Forms
View this code snippet on GitHub. We wrote a snippet that will allow you to create a dynamic naming template for your uploaded Gravity Form files. This includes the ability to prepend, append or...
View ArticleSpeed Up Your Gravity Forms Testing: Unrequire Required Fields
View this code snippet on GitHub. I’ve been using this snippet for quite some time with my Gravity Forms development. I never thought to share it until a client was complaining to me about how much of...
View ArticleSkip User Registration For Logged In Users
If you’re using the Gravity Forms User Registration Add-on, this snippet will allow you to skip registration for users who are logged in when they submit the form. View this code snippet on GitHub....
View ArticleSubtotal Merge Tag (for Calculations)
View this code snippet on GitHub. Currently, there is no easy way to get the current total (let’s call it the subtotal) of the form for use in calculations. It’s possible but you’ll have to enter all...
View ArticleHow to hide the Gravity Forms AJAX spinner
You may have seen our article on how to change the default Gravity Forms ajax spinner but what if you want to remove it completely? It’s actually quite simple. All you need to do is add the following...
View ArticleCreating Coupons for GF Coupons Add-on with Gravity Forms
View this code snippet on GitHub. Submitting a Gravity Form is a powerful thing. After the the submit button is pushed, any number of things could happen. You could register the submitter as a user on...
View ArticleSchedule a Post by Date Field with Gravity Forms
With Gravity Forms, allowing users to submit posts to your WordPress website couldn’t be easier. Currently, you can set the default status of the generated WordPress post as “Draft”, “Pending” or...
View ArticleDisable HTML5 Validation on Gravity Forms
Why we created this snippet? There are a number of reasons why you might be looking for a snippet like this. We wrote the snippet originally after encountering an issue with a form not submitting if a...
View Article