What happens when someone submits your form
- The plugin adds a Fantastic Form block to the block editor and a [fantastic_form] shortcode for the Classic Editor and page builders.
- On the page, the form is shown in a lazy-loading iframe that points to your form at fantasticforms.com/f/<form ID>, with payment and clipboard access allowed for payment and copy features.
- Submissions go from the visitor's browser straight to Fantastic Forms. Nothing is stored in your WordPress database, and the form's own integrations, emails and webhooks run as usual.
- The plugin makes no outside requests of its own unless you save a Pro API key under Settings > Fantastic Forms, which lets it list your forms.
What gets sent to WordPress
| From your form | In WordPress |
|---|---|
| Shortcode id or block Form ID | The form shown (fantasticforms.com/f/<ID>) |
| height attribute or Height slider | Frame height in pixels (default 700) |
| width attribute (shortcode) | Frame width in px or % (default 100%) |
| theme attribute or Theme setting | Force light or dark, or follow the form |
| Optional Pro API key | Form picker in the block and a list of your forms with ready shortcodes |
How to connect WordPress
Before you start, you need
- A WordPress site running WordPress 5.8 or newer and PHP 7.4 or newer.
- Permission to install plugins on the site.
- A Fantastic Forms account and a published form.
- Optional: a Fantastic Forms Pro API key, only if you want to pick forms from a dropdown in WordPress.
Download the plugin
Download fantastic-forms.zip from fantasticforms.com/wordpress.
Install and activate it
In WordPress, go to Plugins > Add New > Upload Plugin, upload the zip file and click Activate.
Publish your form and copy its ID
Make sure the form is published in Fantastic Forms, then copy its ID from the form's link: in fantasticforms.com/f/abc123 the ID is abc123.
Add the block or shortcode
In the block editor, add the Fantastic Form block and paste the ID. In the Classic Editor or a page builder's shortcode widget, paste [fantastic_form id="abc123"].
Adjust height and theme
Use the block's Height slider and Theme setting, or the height and theme shortcode attributes, until the whole form fits without an inner scrollbar.
Optional: add your Pro API key
Under Settings > Fantastic Forms, save an API key from fantasticforms.com/developer to choose forms from a dropdown in the block and see a list of your forms with their shortcodes.
Publish the page and submit a test
Publish or preview the page, submit the form once and check that the response appears in Submissions in Fantastic Forms.
Popular ways to use WordPress with your forms
Contact and quote forms on your site
Replace a basic contact form with one that has conditional questions and sends leads straight to your CRM through Fantastic Forms integrations.
Start from a template: Contact Us Form Template, Quote Request Form Template
Take payments and donations on WordPress
Embed an order, payment or donation form without adding a separate commerce plugin to your site.
Start from a template: Payment Form Template, Order Form Template, Donation Form Template
Event and webinar sign-up pages
Put a registration form on your event landing page and send registrants to your email or webinar tool.
Start from a template: Event Registration Form Template, Webinar Registration Form Template
Tips for a better setup
- Set the height a little taller than the longest page of the form so visitors never scroll inside the frame. The shortcode accepts 200 to 4000 pixels.
- Use theme="dark" on dark site designs, or leave the theme empty to follow the form's own design.
- Because the form is an iframe, caching and optimization plugins do not interfere with it, and you do not need to exclude the page from cache.
- Set up integrations, notifications and redirects in Fantastic Forms; they apply to embedded submissions automatically.
- The block and shortcode work on every Fantastic Forms plan; the API key only adds the form picker.
Good to know
- Forms are embedded in an iframe, so you set the height yourself rather than it resizing to the content.
- The form picker in WordPress needs a Pro API key; on other plans you paste the form ID.
Troubleshooting
The page shows "missing id attribute"
The shortcode has no form ID. Use [fantastic_form id="YOUR_FORM_ID"] with the ID from your form's link. Only admins see this notice; visitors see nothing.
The frame is empty or says the form is unavailable
The form is not published or the ID is wrong. Publish the form in Fantastic Forms and copy the ID from its live link.
The form is cut off or has an inner scrollbar
Increase the block's Height or the shortcode's height attribute. Values outside 200 to 4000 pixels fall back to 700.
"Could not fetch your forms: Invalid API key"
The key under Settings > Fantastic Forms was revoked or mistyped. Generate a new key at fantasticforms.com/developer and save it. Embedding by ID keeps working either way.
WordPress integration FAQ
Is the WordPress plugin free?
Yes. The plugin is free and GPL-2.0 licensed, and it works with a free Fantastic Forms account. A Pro API key is only needed for the in-editor form picker.
Where are submissions stored?
In your Fantastic Forms account. The plugin only displays the form; it does not store or process submissions on your WordPress site.
Does it work with Elementor, Divi or Beaver Builder?
Yes. Paste the [fantastic_form id="..."] shortcode into the page builder's shortcode widget or module.
Do payments, file uploads and integrations work in the embed?
Yes. The embed shows the real form, so payments, uploads, signatures, conditional logic and every integration connected to the form work the same as on its own link.
Does the plugin send data about my site or visitors?
No. The plugin does not send telemetry. It only contacts fantasticforms.com to list your forms when you save an API key, and visitors' browsers load the form itself.
Can I embed several forms on one page?
Yes. Add one block or shortcode per form.