Custom Fields
Support MB Frontend Submission Creating Complex User Forms

  • Creator
  • #12310
    Resolved @mindspark

    Hi Anh -

    I'm creating CPT Packages. Each package has many custom fields, and I have sib-grouped the fields into individual tabs. For example -

    CPT - Package

    CF Group 1 - Deal Info
    CF Group 2 - Package Info
    CF Group 3 - Financial Info
    CF Group 4 - Admin Tasks

    #1. I want to create a front-end form with pagingation that shows only 1 field group at a time. Can this be done with MB or do I need to use a form plugin?

    #2. After a given record is created, I want users to be able to edit the records later, so I'm envisioning a search page to find a given Package, and then click to edit. Will MB front-end form allow me to edit entries after they are created in the database?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
  • #12355
    Anh Tran

    Hi Neil,

    #1. I'm afraid there's no pagination supported at the moment. But I think you can use the Meta Box Tabs to organize the fields into tabs, so not many fields are displayed to users at once.

    #2. Yes, that's doable. Firstly, you need to create an archive page for your packages. It's like a custom post type archive in WordPress, so no big deal.

    Secondly, create a "Edit" page, where you insert the shortcode [mb_frontend_form] to edit a package.

    Finally, add a link to the "Edit" page in packages. To make the "Edit" page understands the package, you can pass the post_id to its URL. So, I'd like to use a filter to auto insert the link to package's post content, like this:

    add_filter( 'the_content', function( $content ) {
        if ( ! is_singular( 'package' ) ) {
            return $content;
        $edit_page = 123; // ID to "Edit" page
        $edit_page_link = get_permalink( $edit_page );
        $edit_link = add_query_arg( 'rwmb_frontend_field_post_id', get_the_ID(), $edit_page_link );
        $content .= "<p><a href='$edit_link'>Edit package</a></p>";
    } );

    Hi MindSpark,

    Take a look at this, it's old but should point you in the right direction:



    thanks to both of you.

    I'm using Relevanssi and Beaver Themer. Themer will handle the archive template and the MB Themer integration allows for everything I need from there - I think!

    thx again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.