[WordPress] 外掛分享: Code and Core Repeater Fields for Contact Form 7

首頁外掛目錄 › Code and Core Repeater Fields for Contact Form 7
WordPress 外掛 Code and Core Repeater Fields for Contact Form 7 的封面圖片
全新外掛
安裝啟用
尚無評分
8 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.0 上架:2026-04-02

內容簡介

Code and Core Repeater Fields for Contact Form 7 外掛可讓使用者在 Contact Form 7 表單中新增無限或有限的動態欄位區塊,適合收集複雜的表單數據,提升使用者體驗與提交率。

【主要功能】
• 原生 CF7 整合,簡單操作
• 郵件標籤自動生成,便捷收集
• 全域設定面板,快速配置按鈕
• 限制使用者輸入,避免過多數據
• 動態欄位觸發,智能生成行數
• 100% WPML 支援,多語言兼容

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Code and Core Repeater Fields for Contact Form 7」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Code and Core Repeater Fields for Contact Form 7 takes your classic Contact Form 7 forms to the next level by allowing users to add an unlimited, or strictly limited, number of dynamic field blocks.
Whether you are collecting an unknown number of attendees for an event, gathering past employment history records, dynamically submitting multiple file uploads, or tracking an indefinite list of inventory items the Repeater Extension seamlessly integrates directly into your Contact Form 7 editor, providing the ultimate solution for complex form data collection.
If you are looking to create highly converting, dynamic WordPress forms, the Code and Core Repeater Fields for CF7 plugin is an essential add-on. Gone are the days of creating tedious, hard-coded long forms with dozens of unnecessary inputs. By allowing your website visitors to recursively duplicate form field groups or “add more rows” on the fly, you instantly streamline the user experience, improve your form submission rates, and collect cleanly structured data arrays.
This lightweight, developer-friendly CF7 repeater extension is fully optimized for performance and modern WordPress site architecture. Whether you urgently need a ‘CF7 add more fields’ button, dynamic repeatable multipart form rows, or a frontend input cloner, our extension handles it flawlessly. It acts as the perfect dynamic form builder solution to collect complex nested data like family member details, employment histories, or multiple product order requests directly inside your existing Contact Form 7 setup.
Core Features & Highlights

Native CF7 Integration: We built the repeater seamlessly into the Contact Form 7 tag generator UI. You simply click the “Repeater” button just as you would for any standard text or email tag.
Mail Tag Auto-Generation: Your repeater groups appear right inside the CF7 “Mail” tab. Drop in your repeater tag (e.g., [attendees]), and the plugin automatically prints out the gathered fields!
Global Configuration Dashboard: Tired of manually typing “Add Row” into every form? Use the brand-new, beautifully designed Repeater Settings panel to configure global defaults for button labels.
Advanced Output Formatting: Output the collected repeating fields into your email templates as either clean HTML Tables or beautifully formatted indented Lists.
Limit User Inputs (Min/Max Validation): Restrict how many repeating blocks a user can generate. Enforce a minimum of 1 and a maximum of 5 to protect your inbox from being flooded, with smart validation natively warning the user.
Dynamic Field Triggers: Link your repeater directly to other form fields (like a number input or dropdown menu). When a user types “5” into a trigger field, the repeater automatically generates exactly 5 rows instantly!
Asset Optimization Engine: Don’t let your website slow down! The plugin safely enqueues JavaScript conditionally only on the pages actually rendering a CF7 Repeater shortcode.
100% WPML & Translation Compatible: All of the plugin’s interface texts, dynamic configurations, and alerts strictly run through WordPress localization hooks and WPML filter strings, guaranteeing zero compatibility issues on multi-lingual translated websites.
Developer Friendly Email Templating: Need more than just Tables or Lists? Easily override the core HTML email layouts by dropping a simple PHP template file directly into your own active WordPress theme. Complete structural control without ever modifying plugin core files!

External services
This plugin connects to a third-party service at https://wordpress-plugins.pro/ for the following purposes:

Deactivation Feedback: When you deactivate the plugin, an optional feedback form allows you to share why you are deactivating. If you fill this out, it sends the reason, site URL, plugin/WordPress/PHP versions, and active theme information. This helps us improve the plugin.
Usage Tracking (Telemetry): If you explicitly opt-in via our settings or the activation modal, the plugin will occasionally send anonymous site diagnostics (site URL, plugin/WP/PHP versions, and active theme info) to help us prioritize compatibility updates and features.

This service is provided by “WordPress Plugins Pro”: General Conditions, Privacy Policy.
Usage Guide
Here are the two primary ways to implement the Repeater Field based on your dynamic form requirements:
1. Manual Mode (User-Controlled Rows)
In this mode, users click “Add” to add new rows and “Remove” to delete them. This is ideal for general lists like attendees or work experience.
[repeater contact-list initial:1 max:10 add_text:"Add row" remove_text:"Remove row"]


[/repeater]

2. Auto-Generation Mode (With Trigger Field)
This mode automatically generates a specific number of rows based on a numeric value from another field (e.g., a dropdown or number input). It removes the manual “Add Row” button for a more streamlined experience.


[repeater guests trigger:guest-count]

[/repeater]

3. Displaying in Emails
To show the collected repeater data in your email notifications, go to the Mail tab in Contact Form 7 and use the repeater’s ID (e.g., [guests]) inside the Message Body:
Hello Admin, here is the submitted data:

[guests]

The plugin will automatically render the data as a professional HTML Table or a formatted List depending on your configuration.
4. Advanced Shortcode Example: Inline Email Lists
Want your data as a bulleted list instead of a table? Simply pass the mail_format attribute directly into your form shortcode!
[repeater attendees mail_format:"list"]
...
[/repeater]

5. Custom Email template
If you want complete control over how the repeating fields look in your email notifications, you can override the default template safely from your theme!

Go to your active theme (or child theme) directory.
Inside your theme, create a new folder path: code-and-core-repeater-fields-for-contact-form-7/templates/
Copy the file code-and-core-repeater-fields-mail.php from our plugin’s /templates/ directory into this newly created folder.
Open the copied file and edit the HTML variables however you like!

Custom Template Code Example (code-and-core-repeater-fields-mail.php):
Our PHP template natively exposes $sub_fields (an array of your CF7 field names) and $rows (a 2D array containing every user submission). You can elegantly loop through them like this:
$row) {
echo '

';
echo '

Attendee #' . ($index + 1) . '

';

foreach ($sub_fields as $field_name) {
$value = isset($row[$field_name]) ? $row[$field_name] : 'N/A';
echo '

' . esc_html($field_name) . ': ' . esc_html($value) . '

';
}

echo '

';
}
?>

The plugin will automatically detect and load your beautiful custom theme layout instead of the default HTML table!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon