Clone file field in group is not displayed on edit page

Support MB Builder Clone file field in group is not displayed on edit pageResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17970
    YumikomYumikom
    Participant

    Hi there,

    I created a File Advanced field in a group.
    This Group is Sortable and Cloneable.
    This Field is Sortable, Cloneable and Max number of files = 1.

    Two files have been added in this field and save post.
    However, only one file was displayed in this field.

    The internal data has been saved, but the builder display is incorrect.
    Fixes are not rushed, as they can be avoided in other ways.

    Regards,
    Yumikom

    #17989
    Anh TranAnh Tran
    Keymaster

    Hi Yumikom,

    Can you share your code of the field group and some screenshots?

    #17994
    YumikomYumikom
    Participant

    Hi Anh,

    The test code is below.

    $meta_boxes[] = array (
        'title' => esc_html__( 'test', 'text-domain' ),
        'id' => 'test',
        'post_types' => array(
            0 => 'post',
        ),
        'context' => 'normal',
        'priority' => 'high',
        'fields' => array(
            array (
                'id' => $prefix . 'group_test',
                'type' => 'group',
                'name' => esc_html__( 'Group', 'text-domain' ),
                'fields' => array(
                    array (
                        'id' => $prefix . 'test1',
                        'type' => 'file_advanced',
                        'name' => esc_html__( 'File Advanced', 'text-domain' ),
                        'max_file_uploads' => 1,
                        'max_status' => false,
                        'clone' => 1,
                        'sort_clone' => 1,
                    ),
                ),
                'clone' => 1,
                'sort_clone' => 1,
                'default_state' => 'expanded',
            ),
        ),
    );
    
    return $meta_boxes;
    

    Thanks and Regards,
    Yumikom

    #17995
    YumikomYumikom
    Participant

    Hi Anh,

    I was able to update the builder plugin to the latest and confirmed it was fine.
    Thank you!

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