Deftform for WordPress
Build your form in Deftform, copy one snippet and paste it into any WordPress page. The form fits right into your layout, grows with every step and sends each response straight to your Deftform inbox. No plugin to install, update or secure.
Embed code
Every form in Deftform comes with a ready-made embed code. It loads your form into the page, matches the available width and keeps the height in sync with the content, so your visitors never see a second scrollbar.
Where to paste it
<div class="deftform"
data-form-id="YOUR_FORM_ID"
data-form-width="100%"
data-form-align="center"
data-form-auto-height="1"></div>
<script src="https://cdn.deftform.com/embed.js"></script>
Your own form ID is already filled in when you copy the code from your Deftform dashboard.
Step by step
No developer, no plugin settings, no shortcodes. If you can copy and paste, you can embed a Deftform form.
Create your form in Deftform with the drag-and-drop builder or let the AI assistant draft it for you. Add your logo and brand colors so it matches your site.
Open your forms list or the form builder and click "Copy embed code". Your form ID is already filled in.
Edit your page, add a Custom HTML block (or the HTML widget in Elementor) and paste the code.
Click Update or Publish. The form is live, adjusts its height automatically and every response lands in Deftform.
Auto height
Multi-step forms, conditional fields and error messages change the height of a form all the time. The Deftform embed resizes itself on the fly, so the page around it moves along naturally and there is never a cramped box or an inner scrollbar.
Responses
Every submission is stored in your Deftform inbox. Get an email for new responses, send them to your tools with webhooks or export them whenever you need. Your WordPress site stays lean and has no form data to protect.
Beyond WordPress
The same form can also run on its own page under your own domain, with SSL included. Use the embed on your WordPress site and the direct link in newsletters, social posts or QR codes.
Why Deftform
Form plugins add settings pages, database tables and updates to look after. Deftform keeps all of that outside of WordPress.
Nothing to install, nothing to update and no plugin conflicts after the next WordPress release. The embed code keeps working with any theme.
Responses, uploads and emails are handled by Deftform. Your WordPress database does not grow with every submission.
The form takes the full width of its container and adjusts its height automatically, on desktop and on mobile.
Protect your forms with ALTCHA, Cloudflare Turnstile or reCAPTCHA. No extra anti-spam plugin required.
Send responses to your CRM or automation tools with webhooks and the HubSpot integration, without touching WordPress.
Deftform is built in Germany and hosted in Falkenstein, so the data your visitors submit stays in the EU.
FAQ
Build your form, copy the code and publish. Your first form is free to try, no credit card required.