Add a contact form to a Framer site

There are two ways to send a Framer form to FormKeep: paste an HTML form into an Embed component, or point Framer's own form at FormKeep as a webhook. The Embed route works on any FormKeep plan with no settings.

What you need

Steps with an Embed component

  1. Create a form in FormKeep and copy its URL from the Setup tab.
  2. In Framer, open the Insert menu, search for Embed and drag the Embed component onto the canvas.
  3. In the component's HTML section, paste the form below with your URL as the action.
  4. Publish the site, send a test message from the published page and open the form in FormKeep to see it.

The form

<form action="https://formkeep.com/f/YOUR-TOKEN" method="POST">
  <input name="email" type="email" placeholder="Email" required>
  <textarea name="message" placeholder="Message" required></textarea>
  <button type="submit">Send</button>
</form>

What happens on submit

The browser posts the form and is redirected: to the redirect URL set in the form's Redirects tab in FormKeep ("Redirect to your site"), or to FormKeep's own thank-you page if none is set. A plain form post gets no JSON.

Or use Framer's own form with a webhook

Framer's form component can send each submission to a webhook as an HTTP POST with a JSON body. FormKeep stores the JSON fields like form fields, but Framer expects a 2xx answer and does not follow redirects, and FormKeep answers a post that does not ask for JSON with a redirect. So the form must be set to always answer with JSON first:

  1. In FormKeep, open the form's Redirects tab and choose "Force JSON response". The form then always answers 200 with null. This option is only offered on plans that include Redirects.
  2. In Framer, select the form on the canvas, click "Add..." next to "Send To" and choose "Webhook".
  3. Enter your FormKeep URL, which must start with https://. The JSON keys are the names of Framer's form inputs.
  4. Publish, send a test and check the form in FormKeep.

Add file uploads

With the Embed route, add a file field and enctype="multipart/form-data" to the form. Each file can be up to 10 MB, and whether attachments are kept depends on your plan. The webhook route sends JSON and cannot carry files.

Troubleshooting

Looking for something else?

Email us