AI TOOLS

Embed a Tally form in a shared HTML page

A landing page, proposal or report with a Tally form on it. Why the form box stays empty when the script is missing, how the height adjusts, what a wrong form ID shows, how to pass a hidden field, and how to share the page as a link.

4 min read·

Ask Claude or ChatGPT for a landing page or a proposal "with a form" and it may add Tally's embed code: an <iframe data-tally-src="https://tally.so/embed/FORM_ID?..."> plus a short script that loads tally.so/widgets/embed.js. That code works in a shared page once the script is kept and the form ID is right.

The tests below were run in headless Chrome against a public Tally form, on a page served over http and on the same file opened from disk.

Empty box: the script was dropped

Tally's embed code puts the form address in data-tally-src, not src. The iframe has no address until Tally's script copies it across. AI tools sometimes keep the iframe and leave out the <script> after it.

Tested: with the script, the iframe got its src and the form loaded. Without it, the iframe had no src and the page showed an empty 200-pixel box with no error in the console. Either paste the script back in, or change data-tally-src to src.

Opening the file from your computer

Tally's script address starts with https://, so the form also loads from a file opened on your computer. Tested: the same page opened from disk (a file:/// address) loaded the form and resized it, the same as over http.

Use your form ID

FORM_ID is the last part of your form's share link: for https://tally.so/r/abc123 it is abc123. AI tools often fill in a placeholder.

Tested: an ID that does not exist loaded Tally's "page was not found" message inside the frame. If you see that where the form should be, the ID is wrong or the form is not published.

The embed styles

All of these loaded the form in the test page:

  • ✓Standard embed: the data-tally-src iframe with Tally's script. With dynamicHeight=1 in the address, the script resized the frame from its height="200" to the form's height (237 pixels for the short test form).
  • ✓Plain iframe: <iframe src="https://tally.so/embed/FORM_ID" height="500"> loaded with no script. It keeps the height you give it, so set one that fits the form or the form scrolls inside the frame.
  • ✓Share page in a frame: <iframe src="https://tally.so/r/FORM_ID"> also loaded, with Tally's full-page layout.
  • ✓Popup: <button data-tally-open="FORM_ID" data-tally-layout="modal">Give feedback</button> with <script async src="https://tally.so/widgets/embed.js"></script> opened the form in a box over the page when clicked.

Pass a hidden field

To tell which page a response came from, add it to the form address: https://tally.so/embed/FORM_ID?dynamicHeight=1&source=proposal. Tested: the value stayed in the frame's address, and the script also added originPage with the page's path. Tally stores the value only if the form has a hidden field block named source.

Upload it and send the link

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

Edit the questions in Tally 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 Typeform in a shared page and a waitlist page.

Frequently asked

Do viewers need a Tally account to answer?

No. A published Tally form can be answered by anyone who opens the page, the same as the form's own share link.

Does a password on the page keep the form private?

No. The password protects the page. The form ID is in the page source and the form works on its own at its Tally 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