Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1314585
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 questionI'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 questionI'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 badges2 Answers
Reset to default 0If 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
版权声明:本文标题:Is there a way to let user add and remove fields with Contact Form 7? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741965069a2407500.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论