Gravity Forms is an advanced form builder for WordPress websites. This article will detail how to integrate Gravity Forms with SharpSpring.
The following user roles can integrate Gravity Forms:
- For Non-Developers: Integration Tool
- For Developers: Creating Necessary Forms
- For Developers: Editing Code and Fields
- Integration Considerations
- Ready to Learn More?
For Non-Developers: Integration Tool
Non-developers can generate a Gravity Forms integration code with SharpSpring's Gravity Forms Integration Tool.
For Developers: Creating Necessary Forms
Developers will need to perform a more in-depth integration.
To integrate SharpSpring with Gravity Forms, do the following:
Note: This form will not be embedded this on a page of your site. However, you will be referencing this code during the setup process. If you have already embedded a SharpSpring tracking code for the native form, it must be removed from your page before following these steps.
Note: A Gravity Form's ID value is visible in when creating a new Gravity Form in the upper-left corner, and appears in the ID column of the Edit Forms section.
For Developers: Editing Code and Fields
Once the native form and Gravity Form have been created, Wordpress code can be modified. To modify the necessary code, as well as the fields in the Gravity Form code, do the following:
Note: The native form code and the Gravity Form code should not be in the same text editor window.
Note: You will need to generate a block of this code for each Gravity Form you would like to track in SharpSpring.
The following is an example of completed code:
When adding fields, the value on the left is the field name as it will be sent to SharpSpring. You will still need to map these fields, but providing a clear name here will make that easier. It is best to make these field names alphanumeric, as punctuation and other special characters may cause this to fail.
'fieldID' is the ID of the field value on the Gravity Form. Each Gravity Form field has a unique ID.
'trackingid__sb' must be included in order to grab the cookie and establish tracking to the lead correctly.