Contact Form 7 – Campos repetíveis

Descrição

Este plugin adiciona grupos de campos repetíveis no Contact Form 7.

NOTE: Tested with Contact Form 7 5.7.7.

Como usar

Formulário

Envolva os campos desejados com [field_group id_do_seu_grupo_aqui][/field_group]. O shortcode aceita parâmetros adicionais, tanto no formato de shortcode do WP quanto no formato de parâmetros de campos do CF7.

Exemplo:

[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]

E-mail

Nas configurações de e-mail, envolva os campos com o id do seu grupo. Você também pode usar a tag [group_index] para exibir o índice do grupo e um __<NÚMERO> adicionar para exibir um campo com índice específico.

Exemplo:

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

Contribua

Você pode contribuir com código, relatando problemas ou dando ideias no repositório no GitHub.

If you like the plugin, a review is appreciated 🙂

Perguntas frequentes

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.

Avaliações

12 janeiro, 2025
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!
13 janeiro, 2024 3 respostas
Plugin throwing error while clicking on submit
21 junho, 2023
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.
3 março, 2021
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.
Leia todas as 21 avaliações

Colaboradores e desenvolvedores

“Contact Form 7 – Campos repetíveis” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

Contact Form 7 – Campos repetíveis” foi traduzido para 6 localidades. Agradecemos aos tradutores por suas contribuições.

Traduzir “Contact Form 7 – Campos repetíveis” para seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.

Registro de alterações

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:

Changed:

Security:

  • Sanitize wrapper div attributes. Props Peter Thaleikis and @felipeelia.
  • Bumped postcss from 8.4.26 to 8.4.31. Props @dependabot.
  • Updated ws from 8.13.0 to 8.18.0. Props @dependabot.
  • Updated @wordpress/scripts from 27.7.0 to 30.3.0. Props @dependabot.
  • Bumped braces from 3.0.2 to 3.0.3. Props @dependabot.
  • Bumped webpack from 5.91.0 to 5.94.0. Props @dependabot.
  • Bumped express from 4.18.2 to 4.19.2. Props @dependabot.
  • Bumped follow-redirects from 1.15.2 to 1.15.6. Props @dependabot.
  • Bumped webpack-dev-middleware from 5.3.3 to 5.3.4. Props @dependabot.
  • Bumped @babel/traverse from 7.22.8 to 7.23.2. Props @dependabot.
  • Several node packages updated. Props @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:

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

  • Corrige as tags repetidas no corpo do e-mail

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

  • Versão inicial