Enable 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 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 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 ArticleCalculate Number of Days Between Two Dates
Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 32 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks View this code snippet on...
View ArticleBan/Limit Email Domains for Gravity Form Email Fields
Want to ban users from entering test@test.com and spamming your registration form? Want to only allow users with your companies email address to signup (i.e. jane@yourcompany.com). This snippet will...
View ArticleBetter Limit Submission Per Time Period by User or IP
Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 32 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks View this code snippet on...
View ArticleUse Gravity Form Merge Tags in Your Post Content
Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 32 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks View this code snippet on...
View ArticleSubtotal Merge Tag (for Calculations)
Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 32 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks View this code snippet on...
View ArticleCustom Field Confirmation
Request users to confirm important information on your forms by entering it twice. Ya know, like the option on the email field? Here’s the code: View this code snippet on GitHub. To install this...
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 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 ArticleMulti-page Form Navigation
Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 32 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks This snippet can add the...
View ArticleHow to Populate and Modify Dates with Gravity Forms
View this code snippet on GitHub. Way back when (in 2012), we wrote an article on how to populate a date, one year from the current date. We’ve rewritten this snippet to be more flexible, easier to...
View ArticleDisable Autocomplete for Gravity Forms
In my experience, autocomplete is generally more helpful than harmful but there are times when it just gets in the way. For those times, use this handy snippet inspired by @ronalfy to disable this...
View ArticleNotify User When Submitted Post is Published
This handy snippet allows you to send an email notification to the user who submitted a Gravity Forms generated post when that post is published. View this code snippet on GitHub. This snippet assumes...
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 ArticleAdd Image Previews to Gravity Forms File Upload Fields
Overview As a user I like to know that the file I’m uploading is the correct one. This useful snippet adds image previews to File Upload fields, giving your users a visual confirmation of the file...
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 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 ArticleGravity Forms Round Robin
View this code snippet on GitHub. Overview Imagine you have a form where you’d like to automatically cycle through the choices of a designated field with every entry. The cycle starts with the first...
View Article