6,000+
October 22, 2024
March 19, 2018
This plugin adds repeatable groups of fields to Contact Form 7.
NOTE: Tested with Contact Form 7 5.7.7.
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.
Example:
[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]
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.
Example:
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]
You can contribute with code, issues and ideas at the GitHub repository.
If you like the plugin, a review is appreciated 🙂
No installation instructions provided.
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.
Yes! Give a look at the Frequently Asked Questions section of our wiki.
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:
wpcf7_field_group_content
filter. Props @Tessachu and @felipeelia.Changed:
Security:
postcss
from 8.4.26 to 8.4.31. Props @dependabot.ws
from 8.13.0 to 8.18.0. Props @dependabot.@wordpress/scripts
from 27.7.0 to 30.3.0. Props @dependabot.braces
from 3.0.2 to 3.0.3. Props @dependabot.webpack
from 5.91.0 to 5.94.0. Props @dependabot.express
from 4.18.2 to 4.19.2. Props @dependabot.follow-redirects
from 1.15.2 to 1.15.6. Props @dependabot.webpack-dev-middleware
from 5.3.3 to 5.3.4. Props @dependabot.@babel/traverse
from 7.22.8 to 7.23.2. Props @dependabot.Added:
Changed:
Fixed:
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:
group_id
as a parameter to all filters.Changed:
Fixed:
Tested up to
field[_format_{field name} "{date format}"]
)$new_group
as an extra param for the wpcf7-field-groups/added
event.wpcf7_field_group_remove_button_atts
filter name. Props to @asilvestre87