Increase the number of fields you can use in the Contact Form builder

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 , , . Bookmark the permalink.

Explore the benefits of Jetpack plans

Compare plans in detail to see how Jetpack can help you design, market, and secure your WordPress site.

Compare plans

Have a question about this article?

Comments are currently closed for this article, but rest assured we're still here to help! Send us a message and we'll get back to you.

Contact us