1

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

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.