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.

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Say Hello to 200 Themes

Jetpack Professional now bundles 200+ Premium WordPress themes,
alongside business class security tools, and marketing automation.

Use code "PRO" at checkout for 50% introductory discount.