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.

Jeremy Herve profile
Jeremy Herve

Jetpack Mechanic 🚀 at Automattic. WordPress, board games, TV Series, music.

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

Have a question?

Comments are closed for this article, but we're still here to help! Visit the support forum and we'll be happy to answer any questions.

View support forum