|Gravity Forms is a third-party form builder for WordPress websites.
These forms can integrate into SharpSpring.
This article will detail how to integrate Gravity Forms.
Regarding Integrated Code
|Running the following generated code or your entire functions.php file through a .PHP validator will decrease the risk of a crash, but it will not catch everything. For more information on .PHP validation, refer to https://phpcodechecker.com/||
Note: SharpSpring offers Professional Services to assist with custom coding.
This integration tool is provided as-is to assist with the setup of integrating Gravity Forms, but this may run into complications due to the configuration within Gravity Forms. This includes, but is not limited to:
- A non-standard Gravity Forms configuration
- Other plugins that interfere
- Additional parameters outside of SharpSpring's control
If native form code has been placed on the page already, it should be removed. This .PHP code replaces its function.
Generating Form Codes
To integrate Gravity Forms, you will need access to your SharpSpring and Wordpress accounts. Also, you must be using Gravity Forms on your site in order for this integration to work. For developer instructions, refer to: For Developers: Integrating Gravity Forms. To obtain a form code from Gravity Forms, do the following:
Important: Some themes may hide access to the functions.php file. It can also be accessed using FTP. Contact your website administrator if you do not see the functions.php file.
Additionally, FTP access is recommended in case the functions.php file needs to be reverted, as incorrect code here can make the site inaccessible except from FTP. Pay close attention to the code that you add to functions.php. If you add incorrect code, you may be locked out of your Wordpress account.
Create a backup of your current functions.php before making these changes and be prepared to replace it via FTP if needed.
Note: Field labels should not contain special characters or accented numbers. Labels should contain A-Z, a-z, 0-9, space, dash, and underscore only. Also, field names here do not need to match the field names within Gravity Forms.
Adding Gravity Forms to Wordpress
Once you have generated a Gravity Form code, you can add the form to Wordpress.
1: Denotes the Editor menu location.
Important: Changes to the functions.php file in Wordpress can result in your site crashing. Be sure you have FTP access in order to backup and revert to your old functions.php file if needed.