Contact Form 7 – 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

Contribute

You can contribute with code, issues and ideas at the GitHub repository.

If you like the plugin, a review 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. 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 section of our wiki.

使用者評論

2024 年 1 月 13 日 3 則留言
Plugin throwing error while clicking on submit
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.
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.
2020 年 11 月 11 日
This plugin is unique. And it fine works with WP 5.5.
閱讀全部 20 則使用者評論

參與者及開發者

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

參與者

〈Contact Form 7 – Repeatable Fields〉外掛目前已有 5 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Contact Form 7 – Repeatable Fields〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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:

This release marks the (slow) resumption of this plugin development. If you want to know more about it check out this blog post. If you find this plugin useful, consider leaving it a review.

Added:

  • Support to wp-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.

Fixed:

  • Validation problem with Contact Form 5.7+. Props @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