Skip to content
Last updated

Embeds

Add a forms.app form to any website or app: a plain <iframe>, or a small JavaScript snippet that unlocks pop-ups, side tabs, a chatbot-style widget, a full-page layout, and prefilled fields.

This section covers both embed methods, every layout forms.app supports, how to pass data into a form from your page's URL, and framework examples for React, Next.js, Vue, and Kotlin.

Get your embed code

Every code sample in this section is built around a real form ID and domain, both of which are specific to your account:

  1. Open the form in forms.app and go to the Share page.
  2. Choose Embed, then pick Iframe or Script.
  3. Configure the layout and settings, then click Get the code.
  4. Copy the generated code as-is. Always copy from the Share page rather than hand-editing the domain or form ID, since these reflect your account's data region.
Two IDs, one form

The long string in the embed code (for example 69d4bd130b443bda40c8f65a) is your form's ID. It appears in both the src URL and, for script embeds, as the first argument passed to formsapp().

Two ways to embed

Embed options

Beyond a plain inline form, the script embed supports five additional layouts:

Pass data into the form

Prefill fields or pass along context, like a referral code or UTM parameter, from your page into the embedded form. See Passing data to your form.

Examples