Tutorials and Snippets
Articles
Accessing Mapped Field Values During Feed Processing
These functions are located in the GFAddOn class and can be used to retrieve the mapped form field values during feed processing in the process_feed() method.
Add Sub-Pages to Gravity Forms Admin Navigation
If you want to add a page to the Gravity Forms Admin navigation options, add the following code to your theme’s functions.php file.
Adding a New Notification Service Using the Add-On Framework
Since Gravity Forms 1.9.16, developers can now include new services which can be selected by the user to handle sending the form notifications.
Adding a Note to the Entry when Using the Add-On Framework
The Add-On Framework includes a couple of helpers which can be used to add notes to the entry.
Adding Meta Boxes to the Entry Detail Page Using the Add-On Framework
This tutorial shows how custom meta boxes can be added to the entry detail page using the gform_entry_detail_meta_boxes filter added in Gravity Forms 2.0.
Adding/Removing Countries From the Country Select Field
In some instances, you may need to add or remove a particular country to or from the country selection field in Gravity Forms.
Cancel a Stripe Subscription After a Specified Number of Payments
The Stripe API doesn’t allow you to set the total number of recurrences of a payment or an end date when creating the subscription but it is possible to cancel the subscription via the gform_post_add_subscription_payment hook which runs after a payment is recorded.
Capturing the HTTP Referrer URL on Form Submissions
This code snippet shows how to capture the HTTP Referrer URL on form submissions.
Centering an Entire Form
This CSS snippet shows how to center an entire form. The snippet may be placed in your style.css for your theme.
Changing Stripe Billing Information
This snippet will allow you to change a customer's billing information that has been stored within Stripe, using a form.