Title: Form Block
Author: epiphyt
Published: <strong>2023 年 3 月 29 日</strong>
Last modified: 2026 年 3 月 26 日

---

搜索插件

![](https://ps.w.org/form-block/assets/icon.svg?rev=2889439)

# Form Block

 作者：[epiphyt](https://profiles.wordpress.org/epiphyt/)

[下载](https://downloads.wordpress.org/plugin/form-block.1.7.3.zip)

 * [详情](https://cn.wordpress.org/plugins/form-block/#description)
 * [评价](https://cn.wordpress.org/plugins/form-block/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/form-block/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/form-block/#developers)

 [支持](https://wordpress.org/support/plugin/form-block/)

## 描述

WordPress offers several (contact) form plugins, but most of them are not up-to-
date anymore when it comes to creating forms. Form Block tackles this problem by
utilizing the block editor’s power. It enables you to create a form effortlessly
within the block editor itself, which makes the process of creating a form much 
more enjoyable and similar to creating other types of blocks. This innovative approach
to form creation ensures that Form Block stands out from other WordPress form plugins.

**Note: This plugins requires the PHP extension [“Document Object Model” (php-dom)](https://www.php.net/manual/en/book.dom.php).**

#### Features

 * Fully support of the block editor
 * Built with accessibility in mind
 * Create forms with an unlimited number of fields
 * Select from a wide variety of field types
 * Use a predefined form or start from scratch
 * Store form submissions in the WordPress backend
 * Integrated honeypot for spam protection
 * Integrated knowledge base for field types
 * Client-side and server-side validation

#### Getting started

 1. Add the “Form Block” block anywhere you want to enable a form in your block editor.
 2. Select a predefined form or start from scratch.
 3. Add/Edit/Remove fields to your form as you like. You can select from input, select
    and textarea fields.

After submission, the form data will be sent to the email address you have set in
the settings.

#### Coming soon

There is much more planned for Form Block. Here is a small selection of features
that are coming soon:

 * Flood Control
 * [Antispam Bee](https://wordpress.org/plugins/antispam-bee/) integration
 * Custom date picker
 * More customization options

#### Pro version

There is also a Pro version of Form Block available. It offers additional features,
such as:

 * Extended server-side validation
 * Custom recipient(s) for each form
 * Custom form action
 * Upload via drag and drop
 * Storing files in WordPress instead of attaching them to an email
 * Global defined consent checkbox
 * Field dependencies
 * Advanced functionality for accessibility

You can find more information at [https://formblock.pro/en/](https://formblock.pro/en/).

## 屏幕截图

 * [[
 * The form in the frontend
 * [[
 * The form block variation picker
 * [[
 * The form creation wizard to create form fields without them creating manually
 * [[
 * The form block in the backend
 * [[
 * The form block settings

## 区块

该插件提供了 5 个区块.

 *   Input A single input field for a form.
 *   Fieldset A fieldset to group fields with a context.
 *   Form A form with customizable fields.
 *   Textarea A mulitline text field.
 *   Select A select field to select one or multiple values from.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/form-block` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Add the ‘Form Block’ block anywhere you want to enable a form in your block editor.

## 常见问题

### Where can I find the settings?

The settings can be found in **Settings > Writing > Form Block**.

### Where will submitted forms be sent to?

All submitted forms will be sent to the administration email address you have set
in the settings (**Settings > General > Administration Email Address**).

If you want to use another email address as recipient, you can use the filter `form_block_recipients`
to change the recipient email address.

### Is there a Pro version?

Yes, there is a Pro version with enhanced functionality. Lean more at [https://formblock.pro/en/](https://formblock.pro/en/).

### How can I contribute?

The code is open source and hosted on [GitHub](https://github.com/epiphyt/form-block).
Read the [contributing guide](https://github.com/epiphyt/form-block/blob/main/CONTRIBUTING.md)
for detailed information.

### Who are you, folks?

We are [Epiphyt](https://epiph.yt/en/), your friendly neighborhood WordPress plugin
shop from southern Germany.

### How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure Program.
The Patchstack team help validate, triage and handle any security vulnerabilities.
[Report a security vulnerability.](https://patchstack.com/database/vdp/form-block)

## 评价

![](https://secure.gravatar.com/avatar/ab62eb42e842b6adca897024806bbf5eaebe9896ac46f2d6823973e6d9d27d42?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-41307/)󠁿

 [Hans-Gerd Gerhards](https://profiles.wordpress.org/hage/) 2026 年 2 月 19 日 1
回复

Block Form is a really great plugin that makes it easy to create fantastic forms.
We will definitely use it frequently for new projects and replace other form plugins
in older projects.

![](https://secure.gravatar.com/avatar/823d95a3ad38ca50ecd87908c22e730d265ecf53fd36b6df57392880a1635da0?
s=60&d=retro&r=g)

### 󠀁[Amazing form block](https://wordpress.org/support/topic/amazing-form-block/)󠁿

 [Manja Neumann](https://profiles.wordpress.org/tippl/) 2025 年 4 月 27 日

If you are looking for a straightforward and easy-to-use form, you will find it 
here. Great support!

![](https://secure.gravatar.com/avatar/64c52b6915961058b9d0cd71a67376c9a2d026a627ce4c29697113f721a2bf9c?
s=60&d=retro&r=g)

### 󠀁[Effortless Contact Form Plugin, Easily Used as Block, GDPR Compliant](https://wordpress.org/support/topic/effortless-contact-form-plugin-easily-used-as-block-gdpr-compliant/)󠁿

 [Dennis Hipp](https://profiles.wordpress.org/dionysous/) 2024 年 7 月 3 日

Just tried out this simple Form Block plugin and it’s awesome – every block in the
editor should be like this. Making a contact form is super easy. You just install
it, add the block in the editor, pick the pre-made contact form, and you’re done.
Editing the fields is a breeze, and it even includes a GDPR checkbox automatically.
It works right away, sending the info to the WP admin email without any extra setup.
The free version is perfect for beginners.

![](https://secure.gravatar.com/avatar/5a4f4d83b0ae892bbbacc2e5c39645edfad279053b07f17b3ffabcbf68e1b8cb?
s=60&d=retro&r=g)

### 󠀁[Das ideale Kontaktformular-Plugin für WordPress-Einsteiger](https://wordpress.org/support/topic/das-ideale-kontaktformular-plugin-fur-wordpress-einsteiger/)󠁿

 [Peter Müller](https://profiles.wordpress.org/pmmueller/) 2023 年 9 月 20 日

Ich habe mir das Form Block-Plugin von Epiphyt mal näher angeschaut und finde es
wirklich klasse. Das Erstellen eines einfachen Kontaktformulars ist mit dem Plugin
sehr einfach: Nach der Installation gibt’s einen neuen Block namens Form Block. 
Form Block im Block-Editor einfügen, das vordefinierte Kontaktformular auswählen,
und schon sind die wichtigsten Felder im Block-Editor vorhanden. Die Formularfelder
können im Block-Editor leicht bearbeitet werden. Eine DSGVO-Checkbox ist beim Kontaktformular
automatisch mit drin. Den Text man bei Bedarf im Editor anpassen. Das Formular funktioniert
sofort nach dem Einfügen und schickt die Formulardaten per Mail an den WP-Admin.
Weitere Konfiguration ist nicht nötig. Die kostenlose Version ist für mich momentan
das ideale Kontaktformular-Plugin für WordPress-Einsteiger und ich setze es in der
Pro-Version selbst inzwischen auf vielen meiner Websites ein.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/form-block/reviews/)

## 贡献者及开发者

「Form Block」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ epiphyt ](https://profiles.wordpress.org/epiphyt/)
 *   [ Matthias Kittsteiner ](https://profiles.wordpress.org/kittmedia/)

「Form Block」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/form-block/contributors)
为本插件所做的贡献。

[帮助将「Form Block」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/form-block)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/form-block/)，查看[SVN仓库](https://plugins.svn.wordpress.org/form-block/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/form-block/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/form-block/)。

## 更新日志

#### 1.7.3

 * Fixed: Visibility of checkboxes/radio buttons in the editor in WordPress 7.0
 * Fixed: Visibility of hidden input field in the editor
 * Fixed: Output of hidden fields

#### 1.7.2

 * Fixed: Getting name by label is more reliable
 * Fixed: Output of checkboxes/radio buttons with custom values

#### 1.7.1

 * Fixed: Attachments were missing from emails (but still available through the 
   form submissions in the backend)

#### 1.7.0

 * Added: Support for block variations for inputs and block transforms for all types
   of form fields
 * Added: Support for global form styles
 * Added: Support for border, color and shadow styles for form fields
 * Added: Support for literal 0 as field value
 * Fixed: A form block without form fields is now completely hidden in the frontend,
   as it does not work without any field
 * Developer: New actions/filters before/after a form submission is created

#### 1.6.1

 * Fixed: Deleting form submissions manually

#### 1.6.0

 * Added: Form submissions can now be stored in the WordPress backend in **Tools
   > Form Submissions**
 * Added: Support for columns, rows and the `wrap` attribute in textareas
 * Added: Indicator if label has a different value than the name of the field
 * Improved: Registering blocks is now faster
 * Improved: Settings are now in a dedicated page in **Settings > Form Block**
 * Fixed: Clicking on a file input in the backend does no more open the system’s
   file selection dialog
 * Fixed: Re-added missing `autocomplete` attribute setting
 * Fixed: Error if no label is defined

#### 1.5.6

 * Fixed: Validating uploaded files against the file type they claim to be ([CVE-2025-54693](https://patchstack.com/database/wordpress/plugin/form-block/vulnerability/wordpress-form-block-plugin-1-5-5-arbitrary-file-upload-vulnerability))

#### 1.5.5

 * Fixed: A cleared name value of a field now properly uses the auto-generated one
   to properly check for its value on form submissions

#### 1.5.4

 * Fixed: Displaying the value of a select option in the backend if no label is 
   defined

#### 1.5.3

 * Fixed: Broken blocks after inserting them into the editor

#### 1.5.2

 * Added: Design for Twenty Twenty-Five
 * Added: Support for new features in Form Block Pro 1.3
 * Fixed: Broken textarea after saving
 * Fixed: Various non-critical React-related issues

#### 1.5.1

 * Fixed: Support for PHP 7.4

#### 1.5.0

 * Added: Support for input groups based on HTML `fieldset` element
 * Added: Support for lists in the output
 * Added: Support for adding a form label
 * Added: Support for `autocomplete` attribute
 * Added: Support for the `spellcheck` attribute
 * Removed: Default added consent checkbox (since it’s not legally required)

#### 1.4.2

 * Fixed: Validation issues for separated date fields
 * Fixed: Line breaks in labels are no more removed in the email
 * Fixed: Error text for a field too large to upload does not indicate anymore that
   it has been uploaded

#### 1.4.1

 * Improved: The notice for required fields is now above the form for enhanced accessibility
 * Fixed: Gaps in certain browsers from hidden input fields
 * Fixed: The value of hidden input fields is now populated in the frontend
 * Fixed: Options without a label now correctly show the value in the select
 * Fixed: Potential PHP warning for split date and time fields

#### 1.4.0

 * Added: Custom separated date fields (read [the announcement for more information](https://epiph.yt/en/blog/2024/form-block-1-4-0-release-and-opinions-on-date-pickers/))
 * Added: All supported input types that were previously only part of the Pro version
 * Added: Design for Twenty Twenty-Four
 * Added: More recognized field names for the form wizard
 * Improved: Input type selection is now more descriptive and translatable
 * Fixed: `aria-describedby` for error fields is no more added multiple times
 * Fixed: Form wizard now returns the proper input fields

#### 1.3.0

 * Added: Support block settings like font size, line height and dimensions
 * Added: By selecting an invalid field, the error message will now be announced
   to screen readers
 * Fixed: Improved resetting a form after successful submit
 * Notice: This version requires at least WordPress 6.3
 * For developers: Each `<form>` element has now its validator object attached to
   it

#### 1.2.0

 * Added: Form creation wizard for even easier form creation
 * Added: Ability to set a custom subject for each form
 * Added: Error message summary if multiple form fields are invalid for screen readers
 * Added: Checks to prohibit multiple form submissions while clicking multiple times
   on the submit button
 * Added: Check for PHP DOM extension
 * Added: A new filter to add custom controls in the primary panel of the form block
 * Added: A new class for the notice below the field stating how required fields
   are marked for easier customization
 * Fixed: After re-validating an invalid form, it can now be sent successfully
 * Fixed: Line breaks for checkbox labels in Twenty Twenty-Three

#### 1.1.4

 * Fixed: Sending potentially the wrong checkbox/radio button value if multiple 
   fields have the same name. There is now a new “value” field available for these
   input types. Please review your forms and adjust the value for your inputs to
   fix this issue.

#### 1.1.3

 * Fixed: Invalid fields are now marked via `aria-invalid` for better accessibility
 * Fixed: Added `aria-hidden="true"` to the asterisk, marking a field as required,
   for better accessibility

#### 1.1.2

 * Fixed: Issue storing form data for forms when they are in another block (e.g.
   in a column)

#### 1.1.1

 * Fixed: Design issue with labels of checkboxes and radio buttons

#### 1.1.0

 * Added: Rich text editor for labels
 * Added: Option to set an email field as “reply-to” in the email notification
 * Added: Preparation to fully support Form Block Pro version 1.0.0
 * Improved: Displaying of values from checkboxes and radio buttons
 * Improved: Design of reset and submit buttons (thanks [@zu](https://github.com/zu)
   for reporting)
 * Fixed: Getting correct values for form field name attributes

#### 1.0.2

 * Fixed: Security issue regarding an CSRF (thanks [@DanielRuf](https://github.com/DanielRuf)
   for reporting)
 * Fixed: Changing value of reset/submit buttons is not possible (thanks [@zu](https://github.com/zu)
   for reporting)
 * Fixed: Allowing multiple radio buttons with identical name
 * Fixed: Submitting an empty form with required fields shows the loading indicator

#### 1.0.1

 * Added: Missing loading information/animation after submit
 * Fixed: Potential PHP warning on uninstallation
 * Fixed: Design for Twenty Twenty-Three
 * Fixed: Design for Twenty Twenty-Two

#### 1.0.0

 * Initial release

## 商业插件

该插件免费，但提供额外的付费商业升级或支持服务。 [查看帮助](https://formblock.pro/en/)

## 额外信息

 *  版本 **1.7.3**
 *  最后更新：**3 周前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 6.7 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/form-block/) 、 [English (US)](https://wordpress.org/plugins/form-block/)、
   [German](https://de.wordpress.org/plugins/form-block/) 和 [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/form-block/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/form-block)
 * 标签
 * [accessibility](https://cn.wordpress.org/plugins/tags/accessibility/)[block-editor](https://cn.wordpress.org/plugins/tags/block-editor/)
   [contact form](https://cn.wordpress.org/plugins/tags/contact-form/)[form](https://cn.wordpress.org/plugins/tags/form/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
 *  [高级视图](https://cn.wordpress.org/plugins/form-block/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/form-block/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/form-block/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/form-block/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/form-block/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/form-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/form-block/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/form-block/reviews/)

## 贡献者

 *   [ epiphyt ](https://profiles.wordpress.org/epiphyt/)
 *   [ Matthias Kittsteiner ](https://profiles.wordpress.org/kittmedia/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 1

 [查看支持论坛](https://wordpress.org/support/plugin/form-block/)