AI TOOLS

Embed a Jotform in a shared HTML page

A landing page, proposal or report with a Jotform on it. Iframe or script embed, why the Submit button gets cut off, what a wrong form ID shows, how to pre-fill an answer, and how to share the page as a link.

4 min read·

Ask Claude or ChatGPT for a contact page or an order page "with a Jotform" and it adds either an <iframe> pointing at form.jotform.com or a <script> tag from form.jotform.com/jsform. Both work in a shared page. The common failure is the height.

The tests below were run in headless Chrome against a public Jotform contact form about 1,100 pixels tall, on a page served over http and on the same file opened from disk.

Keep the script that comes with the iframe code

In Jotform, open Publish, then Embed, and copy the iframe code. It is an <iframe> with a fixed height plus two <script> lines: one loads for-form-embed-handler.js from cdn.jotfor.ms and the next calls jotformEmbedHandler. AI tools often keep the iframe and drop the scripts.

Tested: with the scripts, the frame grew from 539 to 1,115 pixels and showed the whole form. Without them, the frame stayed at 539 pixels. Because Jotform's code also sets scrolling="no", the lower half of the form, including the Submit button, was cut off with no way to scroll to it.

Or use the script embed

The other option in the Embed dialog is a single line: <script src="https://form.jotform.com/jsform/FORM_ID"></script>. It writes the iframe for you and sizes it.

Tested: the script embed produced a 1,115-pixel frame with the full form, both when the tag was in the HTML and when the page added it later with JavaScript.

A plain iframe needs a height

If you write the iframe yourself, set a height. Tested: an iframe with no height showed the form in a 150-pixel box with a scroll bar. Set the height a little taller than the form, or add the two resize script lines from Jotform's code.

Use your form ID

The form ID is the long number in your form's address, form.jotform.com/NUMBER. AI tools sometimes fill in a placeholder or a made-up number.

Tested: an ID that does not exist loaded Jotform's "Oops, It looks like this form is missing!" page inside the frame. If you see that, copy the code again from Publish.

Opening the file from your computer

Tested: the same page opened from disk (a file:/// address) loaded and resized the form the same way as over http.

Pre-fill an answer

To tell which page a submission came from, pre-fill a field by adding its unique name to the form address. Find the name in the form builder under the field's Properties, Advanced, Field Details. For a Full Name field with unique name fullName1 and an Email field with unique name email3: form.jotform.com/FORM_ID?fullName1[first]=Sam&email3=sam@example.com.

Tested: the First Name box showed "Sam" and the Email box showed the address. Viewers can still change them before they submit. Jotform's own Prefill tool in the Publish menu builds the same kind of address.

Upload it and send the link

Drag the HTML file onto the FileShare Pro dashboard and copy the link. Viewers need no account on FileShare Pro. The shared view does not restrict frames or scripts inside your page, so the form loads there as it did in the test. Submissions go to your Jotform account, not to FileShare Pro.

Edit the form in Jotform and the embedded form shows the new version on the next load; the page and the link stay the same. To collect replies without a form service, see a feedback form with no backend. Related: a Google Form in a shared page, a Tally form in a shared page and a Typeform in a shared page.

Frequently asked

Do viewers need a Jotform account to answer?

No. A public Jotform can be filled in by anyone who opens the page. The test form loaded and showed its fields with no sign-in.

Does a password on the page keep the form private?

No. The password protects the page. The form address is in the page source and the form works on its own at its Jotform address: password-protecting an HTML page.

Does the page show up in Google?

No. Shared files carry a noindex header: keeping a preview out of Google.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free