admin管理员组

文章数量:1314585

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I'm building a form with Contact Form 7 and I would need to add multiple fields under a single label and I would need to let the user to add more fields under that same label if needed. I'm using 4 fields as a starting point and I'd like to have like a + sign next to the last field which would add another field to the same set. Example:

Prizes:
    [         ]
    [         ]
    [         ]
    [         ] +

When that + sign is clicked another field would appear as 5th field

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I'm building a form with Contact Form 7 and I would need to add multiple fields under a single label and I would need to let the user to add more fields under that same label if needed. I'm using 4 fields as a starting point and I'd like to have like a + sign next to the last field which would add another field to the same set. Example:

Prizes:
    [         ]
    [         ]
    [         ]
    [         ] +

When that + sign is clicked another field would appear as 5th field

Share Improve this question asked Jul 30, 2018 at 12:32 trivalwptrivalwp 111 silver badge2 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

If you know enough about php, jquery and css, you can use shortcode in contactform 7, this plugin bring ability to integrate a shortcode inside your contact form, then you can write that shortcode with any functionality you like.

I recommend to add a filter in your shortcode and then by using metabox make your desired field and finally add the shortcode to your contact form.

You can use the Smart Grid Layout extension which has a table input construct, allowing you to define the initial fields in a row of a table and then your users can add several rows of these fields, the submission is an array of values for each field.

本文标签: Is there a way to let user add and remove fields with Contact Form 7