You can create forms directly in the SharpSpring application, or you can map existing forms on your website. Once you have integrated your Gravity Form with SharpSpring, you may need to take additional steps if you have a checkbox group on your form. This article will detail what you need to adjust in your Gravity Form code to map checkbox data into SharpSpring.
The following user roles can integrate Gravity Forms:
Adjusting Gravity Form Code
In a Gravity Form, for a checkbox group, you need to add additional code above the section starting with
$body. To adjust Gravity Form code, do the following:
Understanding Checkbox Fields and Subfields
The code expects a comma-separated list, but Gravity Forms treats each checkbox as a single checkbox field rather than a group. The above solution will combine the checkbox group into a comma-separated list, and store it in
Additionally, some Gravity Forms have fields that are subfields of a main field. The most common example is a
Name field that appears as two separate fields on the form. One field is for
First Name, and one field is for
Last Name, but both may be contained in Field 7. In this case, you would need to determine the subfield IDs within your Gravity forms. You may find, for example, that while
Name is Field 7,
First Name is Field 7.3, and
Last Name is Field 7.6. You can refer to these as you would any field number in the code.
In some places, you may see subfields listed within an underscore. For example, a subfield may be listed as 7_3, rather than 7.3. When adding the field to your .PHP code, be sure to use a decimal point rather than an underscore, as it requires the decimal there to identify the field.