By default, you can only add up to 9 fields to a contact form you create with Jetpack’s Contact Form feature. Once you reach that number, the link to add new fields disappears from the form builder.
You can use the grunion_max_new_fields
filter to change that number, like so:
function jeherve_more_contact_fields() { return 20; } add_filter( 'grunion_max_new_fields', 'jeherve_more_contact_fields' );
This can be useful on sites where folks need to create advanced forms, with multiple options.
This entry was posted in Code snippets and tagged contact-form, grunion_max_new_fields, Public. Bookmark the permalink.
Explore the benefits of Jetpack
Learn how Jetpack can help you protect, speed up, and grow your WordPress site.
Try it for $1.00 for the first month.
Compare plans