> For the complete documentation index, see [llms.txt](https://help.distro.so/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.distro.so/routing-forms/jotform.md).

# JotForm forms

Distro can route a JotForm submission from an accessible form or same-origin iframe. It waits for the iframe to load, checks JotForm validation, and preserves JotForm's native submission handling.

## Check your embed

The parent page must be able to access the iframe's form and JotForm API. The iframe must share the parent's origin (scheme, hostname, and port); a sandbox must also permit that access.

A standard cross-origin `jotform.com` iframe cannot be read by this adapter. Use a JotForm form hosted on your own origin with the JotForm scripts available, or an integration in your application that calls Distro after validation. Merely adding an ID to a cross-origin iframe does not make it accessible.

## Connect and install

1. Create a [form mapping](/routing-forms/overview.md) using the actual field names. Map email and the answers used by your rules.
2. Select it under **Form Submission → Connected form** in the router.
3. Configure, test, and activate the router.
4. Open **Install Router** and choose **JotForm**.

Add the snippet to the parent page. Replace the router ID and iframe selector:

```html
<script src="https://app.distro.so/inbound.js"></script>
<script>
  window.distro = new Distro({
    routerId: "YOUR_ROUTER_ID",
    formType: "jotForm"
  });
  distro.schedule("#jotform-iframe");
</script>
```

For a form directly on the page, pass that form's CSS selector instead. Both `jotForm` and `jotform` are accepted. Distro calls `JotForm.validateAll(form)` and routes only when it returns `true`.

## Verify

Test invalid answers first: validation should prevent routing. Then submit valid qualified and unqualified answers. Confirm JotForm's normal destination still works, and inspect the expected values in Distro's **Routing Logs**.

If the form cannot be accessed, Distro emits `FORM_UNAVAILABLE` through the browser's `distro:event` event. Check the iframe's origin, sandbox, selector, and JotForm script before retrying.


---

# 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://help.distro.so/routing-forms/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.
