FP FormPing Documentation
Open Dashboard

03 — Embedding · Script Tag

One script tag, one form.

The simplest way to put a FormPing form on your site. Drop a single line into your HTML and the widget renders the form you built in the dashboard.

The snippet

<div id="formping-form"></div>
<script src="https://widget.formping.ch/widget.js"
  data-token="YOUR_TOKEN_HERE"
  data-container="#formping-form"
  data-theme="light"
  data-lang="en"></script>

Replace YOUR_TOKEN_HERE with the token ID from your dashboard. The widget renders into the container element you point it at via data-container.

Setting the language

The widget defaults to the language configured on your token, but you can override it with the data-lang attribute. Supported values: de, en, fr, es, it, pt.

<script src="https://widget.formping.ch/widget.js"
        data-token="YOUR_TOKEN_HERE"
        data-lang="de"
        defer></script>

When to use

When not to use

Caching

i

The widget is cached for 5 minutes at the edge with must-revalidate. New form-builder changes propagate within 5 minutes — no hard refresh needed on your visitors' side.

Troubleshooting