Add a contact form to WordPress

The Custom HTML block lets you paste a form that posts to FormKeep. No plugin is needed.

What you need

Steps

  1. Create a form in FormKeep and copy its URL from the Setup tab.
  2. Edit the page in the block editor. Click the Block Inserter, or type /html and press Enter in a new paragraph, to add a Custom HTML block.
  3. Click Edit HTML, paste the form below with your URL as the action, and press Update.
  4. Update or publish the page, view it, send a test message and open the form in FormKeep to see it.

The form

<form action="https://formkeep.com/f/YOUR-TOKEN" method="POST">
  <p>
    <label for="fk-email">Email</label><br>
    <input id="fk-email" name="email" type="email" required>
  </p>
  <p>
    <label for="fk-message">Message</label><br>
    <textarea id="fk-message" name="message" rows="5" required></textarea>
  </p>
  <p><button type="submit">Send</button></p>
</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.

Add file uploads

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.

<form action="https://formkeep.com/f/YOUR-TOKEN" method="POST" enctype="multipart/form-data">
  <input name="resume" type="file">
  <button type="submit">Send</button>
</form>

Troubleshooting

Looking for something else?

Email us