Select Advance Clone Issue

Support MB Group Select Advance Clone Issue

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2910
    asifskasifsk
    Participant

    Hello,

    I am using wordpress 4.4.2 with metabox 4.8.5 plugin and its Group addon 1.0.7.

    I have created a group of three fields, which contain "select_advanced" field and two number fields. The issue i am facing is, when i click the "+ Add More" button, the "select_advanced" filed of new group clone is showing a blank value selected by default. See image below:
    select_advanced field showing emty value on cloning

    So how do i remove this default blank value appearing from new clone group.

    Thanks in advance.

    #2912
    asifskasifsk
    Participant

    Here is the code i am using for "select_advance" field

    array(
    	'id'		=> $prefix.'role',
    	'name'		=> __( 'Select User Role:', 'meta-box' ),
    	'type'  	=> 'select_advanced',
    	//'required'  => true,
    	'multiple'    => true,
    	'options'	=> $user_roles,
    ),
    ,

    Cloning of "select_advance" working fine if "mutiple" option is false, so its only happeining with multiple select option enable.

    #2919
    asifskasifsk
    Participant

    Any help available??

    #2921
    Anh TranAnh Tran
    Keymaster

    Hi @asifsk, sorry for late reply. I'm looking into this issue. Please wait.

    #2922
    asifskasifsk
    Participant

    ok, thanks

    #2924
    Anh TranAnh Tran
    Keymaster

    I've just added a fix on Github. Can you please try it?

    #2925
    asifskasifsk
    Participant

    Hello,

    I have replaced both files, but now the cloned "select_advanced" filed is getting auto populate with first dropdown value. It should be blank by default?

    See here:

    #2926
    Anh TranAnh Tran
    Keymaster

    This commit fixes it. Please try again.

    #2931
    asifskasifsk
    Participant

    The issue is now resolved.

    Thanks

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Select Advance Clone Issue’ is closed to new replies.