Gravity Forms is a third-party form builder for WordPress websites. These forms can easily integrate into SharpSpring. This article will discuss how you can integrate Gravity Forms.
You will need access to your SharpSpring account, you will need access to your WordPress account, and you must be using Gravity Forms on your site in order for this integration to work.
For developer instructions, check out our help article on Integrating Gravity Forms with SharpSpring.
Generating Your Form Code
To obtain a form code from Gravity Forms, follow the steps below.
Step Four: Click the Generate Code and your form code will appear below.
Step Five: Place the code snippet obtained above into the functions.php file within your WordPress theme editor. See steps below for further instruction.
Adding Gravity Form to Wordpress
To add a Gravity Form to Wordpress, do the following:
Step One: Log in to Wordpress.
Step Two: From the menu on the left, under Appearance, click Editor.
Step Three: From the menu on the right, locate and click the functions.php file.
Step Four: Copy the code snippet from the code generator box found above.
Step Five: Paste the copied code snippet at the bottom of your functions.php file.
Step Six: Click Save.
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.
Running this 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, check out https://phpcodechecker.com/
This is provided as-is to assist with the setup of integrating with 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, and 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.