Title: Contact Form 7 &#8211; Repeatable Fields
Author: Felipe Elia
Published: <strong>2018 年 3 月 19 日</strong>
Last modified: 2024 年 10 月 22 日

---

搜尋外掛

![](https://ps.w.org/cf7-repeatable-fields/assets/banner-772x250.png?rev=2942207)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/cf7-repeatable-fields/assets/icon-256x256.png?rev=2942207)

# Contact Form 7 – Repeatable Fields

 由 [Felipe Elia](https://profiles.wordpress.org/felipeelia/) 開發

[下載](https://downloads.wordpress.org/plugin/cf7-repeatable-fields.2.0.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/cf7-repeatable-fields/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/cf7-repeatable-fields/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/cf7-repeatable-fields/#developers)

 [技術支援](https://wordpress.org/support/plugin/cf7-repeatable-fields/)

## 外掛說明

This plugin adds repeatable groups of fields to Contact Form 7.

**NOTE:** Tested with Contact Form 7 5.7.7.

### 使用方式

#### Form tab

Wrap the desired fields with `[field_group your_group_id_here][/field_group]`. The
shortcode accepts additional parameters, in WP shortcode format and in CF7 fields
parameters format as well.

範例：

    ```
    [field_group emails id="emails-groups" tabindex:1]
        <label>Your Email (required)[email* your-email]</label>
        [radio your-radio use_label_element default:1 "radio 1" "radio 2" "radio 3"]
        [select* your-menu include_blank "option1" "option 2"]
        [checkbox* your-checkbox "check 1" "check 2"]
    [/field_group]
    ```

#### Mail tab

In the mail settings, wrap the fields with your group id. You can use the `[group_index]`
tag to print the group index and an additional `__<NUMBER>` to print a field at 
a specific index.

範例：

    ```
    The second email entered by the user was: [your-email__2]

    These were the groups:
    [emails]
    GROUP #[group_index]
        Checkbox: [your-checkbox]
        E-mail: [your-email]
        Radio: [your-radio]
        Select: [your-menu]
    [/emails]
    ```

### Check out the Wiki

 * [Hooks available](https://github.com/felipeelia/cf7-repeatable-fields/wiki/Hooks)–
   How to customize the _add_ and _remove_ buttons
 * [Frequently Asked Questions](https://github.com/felipeelia/cf7-repeatable-fields/wiki/Frequently-Asked-Questions)

### Contribute

You can contribute with code, issues and ideas at the [GitHub repository](https://github.com/felipeelia/cf7-repeatable-fields).

If you like the plugin, [a review](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/#new-post)
is appreciated 🙂

## 常見問題集

### I have a problem with the plugin. Where can I get help?

If you have identified a bug or would like to suggest an enhancement, please refer
to our [GitHub repo](https://github.com/felipeelia/cf7-repeatable-fields). I do 
not provide support here at WordPress.org forums.

### My question is not listed here. Can I search somewhere else?

Yes! Give a look at the [Frequently Asked Questions](https://github.com/felipeelia/cf7-repeatable-fields/wiki/Frequently-Asked-Questions)
section of our wiki.

## 使用者評論

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

### 󠀁[Excellent Plugin for Dynamic Forms](https://wordpress.org/support/topic/excellent-plugin-for-dynamic-forms-2/)󠁿

 [David Klhufek](https://profiles.wordpress.org/brtak/) 2025 年 1 月 12 日

This plugin was a lifesaver for a recent project, allowing me to add repeatable 
fields effortlessly to my Contact Form 7 forms. Simple setup, works perfectly—highly
recommended!

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

### 󠀁[Good](https://wordpress.org/support/topic/plugin-not-wokting/)󠁿

 [Anonymous User](https://profiles.wordpress.org/anonymized-16269756/) 2024 年 1
月 13 日 3 則留言

Plugin throwing error while clicking on submit

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

### 󠀁[Excellent!](https://wordpress.org/support/topic/excellent-12893/)󠁿

 [Mário Valney](https://profiles.wordpress.org/mariovalney/) 2023 年 7 月 29 日

A excellent addon to CF7!

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

### 󠀁[This plugin still works](https://wordpress.org/support/topic/this-plugin-still-works-3/)󠁿

 [Md Abdur Razzaq Masum](https://profiles.wordpress.org/masummdar/) 2023 年 6 月
21 日

I just used this plugin for a client project and it works fine. I am using on WordPress
Version6.2.2 and Contact Form7 Version 5.7.7 Thanks author for sharing this awesome
plugin free for the community.

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

### 󠀁[Abandoned plugin](https://wordpress.org/support/topic/abandoned-plugin-71/)󠁿

 [alexio101](https://profiles.wordpress.org/alexio101/) 2022 年 9 月 21 日

Unfortunately this plugin didnt get any updates for many years.

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

### 󠀁[Very Useful, Thanks!](https://wordpress.org/support/topic/very-useful-thanks-21/)󠁿

 [swcomm](https://profiles.wordpress.org/swcomm/) 2021 年 3 月 3 日

Quick and easy way to add a simple repeater. Working fine for me on WP 5.6.2 and
CF7 5.4. Thanks for making it available.

 [ 閱讀全部 21 則使用者評論 ](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Contact Form 7 – Repeatable Fields〉的開發相關工作。

參與者

 *   [ Felipe Elia ](https://profiles.wordpress.org/felipeelia/)

〈Contact Form 7 – Repeatable Fields〉外掛目前已有 7 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/cf7-repeatable-fields/contributors)
為這個外掛做出的貢獻。

[將〈Contact Form 7 – Repeatable Fields〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/cf7-repeatable-fields)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/cf7-repeatable-fields/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/cf7-repeatable-fields/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/cf7-repeatable-fields/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/cf7-repeatable-fields/)。

## 變更記錄

#### 2.0.2 – 2024-10-22

**This is a security release.** It fixes a Stored cross-site scripting (XSS) vulnerability,
that allowed users with contributor-level access and above, to inject arbitrary 
web scripts in pages that will execute whenever a user accesses an injected page.
Thanks to Peter Thaleikis and the Wordfence team for reaching out about it.

**Added:**

 * New `wpcf7_field_group_content` filter. Props [@Tessachu](https://github.com/Tessachu)
   and [@felipeelia](https://github.com/felipeelia).
 * End-to-end basic tests. Props [@felipeelia](https://github.com/felipeelia).

**Changed:**

 * Node version to v20. Props [@felipeelia](https://github.com/felipeelia).

**Security:**

 * Sanitize wrapper div attributes. Props Peter Thaleikis and [@felipeelia](https://github.com/felipeelia).
 * Bumped `postcss` from 8.4.26 to 8.4.31. Props [@dependabot](https://github.com/dependabot).
 * Updated `ws` from 8.13.0 to 8.18.0. Props [@dependabot](https://github.com/dependabot).
 * Updated `@wordpress/scripts` from 27.7.0 to 30.3.0. Props [@dependabot](https://github.com/dependabot).
 * Bumped `braces` from 3.0.2 to 3.0.3. Props [@dependabot](https://github.com/dependabot).
 * Bumped `webpack` from 5.91.0 to 5.94.0. Props [@dependabot](https://github.com/dependabot).
 * Bumped `express` from 4.18.2 to 4.19.2. Props [@dependabot](https://github.com/dependabot).
 * Bumped `follow-redirects` from 1.15.2 to 1.15.6. Props [@dependabot](https://github.com/dependabot).
 * Bumped `webpack-dev-middleware` from 5.3.3 to 5.3.4. Props [@dependabot](https://github.com/dependabot).
 * Bumped `@babel/traverse` from 7.22.8 to 7.23.2. Props [@dependabot](https://github.com/dependabot).
 * Several node packages updated. Props [@felipeelia](https://github.com/felipeelia).

#### 2.0.1 – 2023-09-11

**Added:**

 * End-to-end tests foundation.

**Changed:**

 * Removed unnecessary files from final package.

**Fixed:**

 * Required checkbox not showing validation messages.

#### 2.0.0 – 2023-07-23

**Note that this version changes minimum required versions of:**

 * [WordPress](https://wordpress.org): 6.0+
 * [PHP](https://php.net/): 7.2+
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/): 5.7+

This release marks the (slow) resumption of this plugin development. If you want
to know more about it check out [this blog post](https://felipeelia.dev/contact-form-7-repeatable-fields-2-0-0/).
If you find this plugin useful, consider leaving it [a review](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/#new-post).

**Added:**

 * Support to [wp-env](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/).
 * `group_id` as a parameter to all filters.
 * Very basic unit testing.

**Changed:**

 * Linting tools and script build process.
 * Docs were migrated to [GitHub wiki](https://github.com/felipeelia/cf7-repeatable-fields/wiki).

**Fixed:**

 * Validation problem with Contact Form 5.7+. Props [@sfdeveloper](https://profiles.wordpress.org/sfdeveloper/).

#### 1.1.3 – 2019-12-11

 * Update WP `Tested up to` field
 * Apply WP Coding Standards
 * Fix a small sanitization problem

#### 1.1.2 – 2019-10-10

 * Fix Exclusive Checkboxes

#### 1.1.1 – 2019-09-04

 * Add compatibility to formatted dates (`[_format_{field name} "{date format}"]`)
 * DEV: Copy data and events while cloning a new group (JS)
 * DEV: Pass `$new_group` as an extra param for the `wpcf7-field-groups/added` event.
 * DEV: Apply some WPCS rules and add a CF7_REPEATABLE_FIELDS_VERSION const (may
   affect JS cache)

#### 1.1 – 2018-06-14

 * Replace groups in mail 2 field

#### 1.0.2 – 2018/03/29

 * Fix repeated tags in mail body

#### 1.0.1 – 2018/03/20

 * Fix the `wpcf7_field_group_remove_button_atts` filter name. Props to @asilvestre87

#### 1.0.0 – 2018/03/19

 * Initial release

## 中繼資料

 *  版本 **2.0.2**
 *  最後更新 **2 年前**
 *  啟用安裝數 **6,000+**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.6.5**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/cf7-repeatable-fields/)、
   [Czech](https://cs.wordpress.org/plugins/cf7-repeatable-fields/)、[Dutch (Belgium)](https://nl-be.wordpress.org/plugins/cf7-repeatable-fields/)、
   [English (US)](https://wordpress.org/plugins/cf7-repeatable-fields/)、[Portuguese (Brazil)](https://br.wordpress.org/plugins/cf7-repeatable-fields/)、
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/cf7-repeatable-fields/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/cf7-repeatable-fields/)、及
   [Spanish (Spain)](https://es.wordpress.org/plugins/cf7-repeatable-fields/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/cf7-repeatable-fields)
 * 標籤:
 * [cf7](https://tw.wordpress.org/plugins/tags/cf7/)[contact form 7](https://tw.wordpress.org/plugins/tags/contact-form-7/)
   [repeatable](https://tw.wordpress.org/plugins/tags/repeatable/)[repeater](https://tw.wordpress.org/plugins/tags/repeater/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cf7-repeatable-fields/advanced/)

## 評分

 4.3 星，滿分為 5 星

 *  [  17 個 5 星使用者評論     ](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/?filter=2)
 *  [  3 個 1 星使用者評論     ](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/cf7-repeatable-fields/reviews/)

## 參與者

 *   [ Felipe Elia ](https://profiles.wordpress.org/felipeelia/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/cf7-repeatable-fields/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://felipeelia.dev/contact-form-7-repeatable-fields/)