Black Friday 30% OFF all Meta Box plans, including Lifetime Ends Dec 1 Get the deal
Meta Box

Meta Box AIO 3.15: Duplicate Field Groups, Reusable Frontend Forms & Responsive Columns

Meta Box AIO 3.15 makes everyday work faster in three places:

  • Duplicate field groups, custom models, settings pages and relationships with one click (MB Builder 5.7).
  • Reuse frontend forms without reloading the page, track submissions with JavaScript events, and change every form message (MB Frontend Submission 4.7).
  • Responsive columns that follow the width of the meta box, not the screen (MB Columns 1.3).

This release also includes Meta Box 5.15.6 with three security fixes. Let's see what's new.

Duplicate Field Groups With One Click

Many field groups start as a copy of another one: the same fields for a second post type, or a variation for a new section of the site. Before this update, you had to export the field group and import it back, then change its ID by hand.

Now, go to Meta Box » Custom Fields, move the mouse over a field group and click Duplicate:

Duplicate a field group in MB Builder

MB Builder makes a copy with all fields and settings, and opens it in the builder. The copy:

  • Has the title "Original title (Copy)".
  • Has a new ID with the _copy suffix, so it doesn't conflict with the original.
  • Is a draft. It doesn't show on any edit screen until you publish it, so you can rename fields and change the location rules first.

The Duplicate action also works for custom models, settings pages and relationships that you create with MB Builder.

This update also makes the Status column safer: the switch checks your permission before it turns a field group on or off, and it's disabled if you're not allowed to change the item.

Reusable Frontend Forms

MB Frontend Submission 4.7 brings three improvements for sites that collect content from users, such as guest posts or reservation forms.

Submit Again Without Reloading

After a successful Ajax submission, the form shows the confirmation message and hides the form. Users who want to send another entry must reload the page.

The new reset_form attribute keeps the form on the page. After a successful submission, users see the confirmation message and a fresh empty form:

[mb_frontend_form id="event-fields" post_fields="title,content" ajax="true" reset_form="true"]

The plugin renders a new form on the server, so all fields return to their default values, including cloneable fields, file uploads, validation and captcha. It only works with Ajax submission, and not in edit mode.

Track and Control Submissions With JavaScript

The form now fires three jQuery events:

  • mb_frontend_before_submit: after the form passes validation, before it's sent. Call event.preventDefault() to stop the submission.
  • mb_frontend_submitted: after the server saves the entry (Ajax forms only).
  • mb_frontend_error: when the server returns an error or the captcha check fails.

For example, to send a Google Analytics event for each submission:

jQuery( document ).on( 'mb_frontend_submitted', function ( event, data ) {
    gtag( 'event', 'generate_lead', { form_id: data.form.id } );
} );

You can use the same events to show a custom message, open a popup, or ask users to confirm before they submit.

Change Every Form Message

All texts that the plugin shows on the front end, such as error messages and the delete confirmation, now go through the rwmb_frontend_message filter. You can change them for all forms or for one form only:

add_filter( 'rwmb_frontend_message', function ( $message, $key, $config ) {
    if ( 'confirm_delete' === $key ) {
        return __( 'This action cannot be undone. Continue?', 'textdomain' );
    }
    return $message;
}, 10, 3 );

The confirmation messages now accept HTML, so you can add links or simple formatting. There's also a new rwmb_frontend_delete_button filter to change the delete button, the same way you change the submit button.

Important: the delete_button attribute now accepts plain text only. If your delete button has an icon or other HTML in this attribute, move it to the rwmb_frontend_delete_button filter after you update.

Responsive Columns

MB Columns used to switch to a single column only on small screens. But the width of a meta box depends on where it is, not only on the screen. In the block editor with the sidebar open, or in a narrow settings page, fields in 3 or 4 columns became too narrow to use.

MB Columns 1.3 checks the width of the meta box instead. When the meta box is narrower than 740px, fields show one below the other at full width. When there's enough space, they show in columns as before. You don't need to change your settings.

Security Fixes and Other Improvements

Meta Box 5.15.6 fixes three security issues: stored XSS in the map info window, XSS in the autocomplete field, and missing permission checks for the Dashboard Ajax requests. We recommend updating as soon as possible.

Other changes in this release:

  • The icon field loads its options via Ajax. Pages with icon fields that have many icons load much faster.
  • The block editor field works on front-end forms: no more fatal error, and TinyMCE loads correctly.
  • Tabs with WYSIWYG editors switch faster in MB Tabs and MB Settings Page.
  • MB Elementor Integrator keeps the Elementor V4 styles in Meta Box Group skins.

Final Thoughts

Update Meta Box AIO to 3.15 to get these features. If you use the extensions separately, update MB Builder to 5.7, MB Frontend Submission to 4.7, MB Columns to 1.3, and Meta Box to 5.15.6. If an update causes a problem on your site, you can download an older version from your account.

For details, see the documentation for duplicating field groups, the frontend form attributes, JavaScript events, and MB Columns.

Don't have these extensions yet? They're all included in Meta Box AIO. Try the new features and let us know what you think.

Anh Tran
Anh Tran
Anh Tran is the Founder & CEO of eLightUp and creator of Meta Box and Slim SEO. As a WordPress developer since 2006, he builds tools focused on simplicity, performance, and helping professionals work more efficiently.
Leave a Reply

Your email address will not be published. Required fields are marked *