> For the complete documentation index, see [llms.txt](https://docs.growsurf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.growsurf.com/integrations/jotform.md).

# Jotform

Add referral tracking to your Jotform form to automatically recognize new leads that come through referrals.

{% hint style="info" %}
**Please note the following requirements to make Jotform work with GrowSurf**:

* Your form must be embedded on your own webpage (you cannot use the stand-alone `https://form.jotform.com/xxxx` webpage).
* Your form must ask for an email address.
  {% endhint %}

## Prep Your Form <a href="#prep-your-form" id="prep-your-form"></a>

If you have an embedded Jotform form on your website that you want to add referral tracking to, follow these instructions:‌

**Step 1:** Open the GrowSurf campaign editor and navigate to the *Installation* tab.‌

**Step 2:** Continue through the installation steps until you reach the referral tracking method section.​‌

**Step 3:** Click the Jotform icon and follow your campaign-specific instructions.‌

**Step 4:** Once your Jotform form has been prepped, continue on with the rest of the GrowSurf installation process.‌

## How It Works <a href="#how-it-works" id="how-it-works"></a>

Jotform does tell the page it sits on that a form was submitted, but it does not pass along the answers. So this integration uses Jotform's Thank You page redirect instead: Jotform merges the respondent's details into the redirect URL, and the GrowSurf code block on that page reads them back out.

In Jotform, open *Settings > Thank You Page*, choose "Redirect to an external link after submission", and add these to the end of your redirect URL:

```
?email={email}&first_name={name:first}&last_name={name:last}
```

Start with `&` instead of `?` if your Redirect URL already has a question mark in it.

The words in curly braces are your Jotform field's Unique Name. Open a field's *Advanced* tab and read *Field Details* to confirm yours, and replace them above if they differ. If your form asks for a name in one field rather than two, use `&full_name={fullName}` in place of the two name parameters.

GrowSurf takes the first word of a whole name as the first name and the second word as the last name. A parameter Jotform did not recognize arrives as its own literal text (`{email}`), and GrowSurf treats that as a missing answer rather than storing it. If no `email` parameter arrives, nothing is sent and no participant is added.

## Additional Tips <a href="#additional-tips" id="additional-tips"></a>

* An embedded Jotform redirects the page it is embedded on, not just the form, so the GrowSurf code block belongs on your thank-you page.
* While following your campaign-specific Jotform instructions in the GrowSurf campaign editor, you may skip any steps that you have already completed from previous setup in Jotform.
* If you run into issues or have any questions, please reach out to [GrowSurf support](https://support.growsurf.com/) for assistance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.growsurf.com/integrations/jotform.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
