Quantcast
Channel: Snippets Archives - Gravity Wiz
Browsing all 196 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Disable 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 Article


Image may be NSFW.
Clik here to view.

Subtotal Merge Tag (for Calculations)

Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 26 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks View this code snippet on...

View Article


Random Fields with Gravity Forms

This snippet provides an easy way to show a random number of fields on your Gravity Forms. Let’s say you’re using Gravity Forms to power a simple questionnaire. You have five (5) questions total but...

View Article

Image may be NSFW.
Clik here to view.

Set a Minimum Order Quantity

Gravity Forms provides the ability to set a minimum per field when using a separate Quantity field but what about a minimum quantity for the entire order? This snippet can help! View this code snippet...

View Article

Image may be NSFW.
Clik here to view.

How to Setup Time-based Conditional Logic with Gravity Forms

Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 27 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks This tutorial will demonstrate...

View Article


Image may be NSFW.
Clik here to view.

Notify 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 Article

Image may be NSFW.
Clik here to view.

Rounding by Increments with Gravity Forms

View this code snippet on GitHub. Let’s say you sell business cards. Orders for these business cards must be placed in increments of 500. If you try to order 499 cards, you’re going to get 500. If you...

View Article

Image may be NSFW.
Clik here to view.

Make Your Gravity Forms Validation Errors Mobile-friendly(er)

View this code snippet on GitHub. Want a plugin version of this?Dennis Hunink has created a plugin version of this snippet available on Github. Check it out! Gravity Forms validation errors are highly...

View Article


Image may be NSFW.
Clik here to view.

Gravity 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 Article


Image may be NSFW.
Clik here to view.

How to Block a Date Range with Gravity Forms Datepicker

This article requires the Gravity Forms Limit Dates perk. Buy Gravity Perks today to get this perk plus 30 other galatic Gravity Forms plugins! View the Plugin Buy Gravity Perks View this code snippet...

View Article

Creating 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 Article

Image may be NSFW.
Clik here to view.

Use 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 Article

Image may be NSFW.
Clik here to view.

Set a Minimum Order Quantity

Gravity Forms provides the ability to set a minimum per field when using a separate Quantity field but what about a minimum quantity for the entire order? This snippet can help! View this code snippet...

View Article


Rename 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 Article

Fix Gravity Form Tabindex Conflicts

Gravity Forms 2.3 removes the tabindex property by default. Unless a custom tabindex is specified, this fix will no longer be needed. This is most common when loading a Gravity Form on a page which is...

View Article


Pro Tip: Skip Pages on Multi-Page Forms

Looking to improve the navigational experience of your multi-page forms? Try our Multi-page Navigation perk. This plugin also supports setting a custom starting page for visitors who may have already...

View Article

Image may be NSFW.
Clik here to view.

Custom Field Confirmation

view demo 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...

View Article


Image may be NSFW.
Clik here to view.

Rounding by Increments with Gravity Forms

View this code snippet on GitHub. Let’s say you sell business cards. Orders for these business cards must be placed in increments of 500. If you try to order 499 cards, you’re going to get 500. If you...

View Article

Image may be NSFW.
Clik here to view.

Customizing 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 Article

Speed Up Your Gravity Forms Testing: Unrequire Required Fields

Stop! There's a better way. This snippet is available as a plugin with Gravity Perks, a suite of over 31 premium Gravity Forms plugins! View the Plugin Buy Gravity Perks View this code snippet on...

View Article
Browsing all 196 articles
Browse latest View live