Skip to content
Last updated

Examples

Framework-specific patterns for embedding a forms.app form, including how to safely load the script embed inside a component's lifecycle.

Which embed method should I use?

  • Iframe embed needs no JavaScript integration. It's a safe default inside any component: just render the <iframe>.
  • Script embed, needed for pop-ups, side tabs, the chatbot and slider layouts, auto-resizing height, and prefilled data, touches window and the DOM directly. It needs a little lifecycle-aware loading, which is what each page in this section covers.

What's next