Require 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. This...
View ArticleConditional Confirmations
This snippet provides the ability to specify conditional confirmations in Gravity Forms. Want to redirect users to a different page based on a value they select on the form? Or just show them a...
View ArticleLink: Change Default Gravity Forms Ajax Spinner
Thomas Griffin posted a handy little tutorial over on his new site Code with WP. This tutorial will walk you through the process of updating the ajax spinner for ajax enabled forms. Check out the...
View ArticleBetter Inventory with Gravity Forms
Gravity Forms does not support the concept of inventory out of the box. This snippet (which improves upon the Simple Ticket Inventory snippet) provides an easy method for setting up simple, one-off...
View ArticleShortcode: Display Number of Entries Left
This shortcode extends the [gravityforms] shortcode, providing a custom action to retrieve the number of entries left based on the form’s entry limit. I’ve had many users ask me about this since I...
View ArticleBetter Limit Submission Per Time Period by User or IP
This snippet allows you to limit submissions to any (or all) Gravity Forms per a time period (i.e. 30 minutes, 24 hours, 2 days, etc) by a WP User ID, by the submitting users IP adddress, or from a...
View ArticleBan/Limit Email Domains for Gravity Form Email Fields
This snippet allows you to ban or limit any email domain(s) for your Gravity Form email fields. Want to ban users from entering test@test.com and spamming your registration form? Want to only allow...
View ArticleFix Gravity Form Tabindex Conflicts
Avoid the annoying issue where tabbing from a field in one form tabs you to a field in another form. This is caused by conflicting tab indexes. This is most common when loading a Gravity Form on a page...
View ArticleMulti-page Form Navigation
Adds support for navigating between form pages by converting the page steps into page links or creating your own custom page links. view demo This snippet can add the multi-page form navigation...
View ArticleCalculate Number of Days Between Two Dates
Calculate the number of days between two given date fields and populate this number into a field on the form. view demo Have you ever needed to calculate the number of days between two given date...
View ArticleSubtotal Merge Tag (for Calculations)
A simple (but hacky) way of getting the subtotal for your Gravity Form calculations. view demo Currently, there is no easy way to get the current total (let’s call it the subtotal) of the form for use...
View ArticleSet Number of List Field Rows by Field Value
View this code snippet on GitHub. Found this interesting question on the Gravity Forms forum: I’m selling tickets. So each ticket needs to be associated with a name/email/etc… Basically, the user needs...
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 ArticleUse Merge Tags as Dynamic Population Parameters
Complex fields (fields with more than one input like the Name field, Checkbox fields, Address fields, etc) do not support the default value option. But they do support dynamic population. This snippet...
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 ArticleRequire Minimum/Maximum Character Limit for Gravity Forms
Have you ever received a generic comment or question in a form submission and wondered if there was a way to discourage this type of response? We’ve whipped up a little snippet that you can use to...
View ArticleEnable Decimal Values in Quantity Fields
Gravity Forms has some pretty comprehensive support for various pricing fields but one thing it does not provide is a weight field. So what do you do when you’re selling something by the pound? This...
View ArticleSimple Split Testing with Gravity Forms
Matt Medeiros wrote an awesome article about A/B Testing with Gravity Forms (also known as split testing). Matt shared a small function which accepts two Gravity Form IDs. The provided form IDs are...
View ArticleUse List Field As Choices for Gravity Forms
I always have a hard time coming up with titles for snippets where the use case for something is not immediately obvious. Here’s a great use case that will help you understand the power of this handy...
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 Article