Select on cloned group can't be updated

Support MB Frontend Submission Select on cloned group can't be updated

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12444
    kesitkesit
    Participant

    Hi,
    I have problem on cloned group which has Select field.
    On first group, I can select option from the field, but when I cloned the group, the select field can't be update and just copied the value from the previous group.

    The code works fine on admin page, but on front-page the problem occurred.

    Here is the code:

    array(
                    'id'          => 'g1',
                    'name'        => 'Branches',
                    'type'        => 'group',
                    'clone'       => true,
                    'sort_clone'  => true,
                    'collapsible' => true,
                    'group_title' => array( 'field' => 'name' ), // ID of the subfield
                    'save_state' => true,
    
                    'fields' => array(
                        array(
                            'name' => 'Name',
                            'id'   => 'name',
                            'type' => 'text',
                        ),
                        array(
                            'name' => 'Address',
                            'id'   => 'address',
                            'type' => 'text',
                        ),
                        array(
                            'id'          => 'contacts',
                            'type'        => 'group',
                            'clone'       => true,
                            'collapsible' => true,
                            'save_state'  => true,
                            'group_title' => array( 'field' => 'person' ),
                            'fields'      => array(
                                array(
                                    'id'   => 'person',
                                    'type' => 'text',
                                    'name' => 'Person',
                                ),
                                array(
                                    'id'   => 'phone',
                                    'type' => 'text',
                                    'name' => 'Phone',
                                ),
                                array(
                                  'id' => 'saudara_status_test',
                                  'name' => 'Status',
                                  'type' => 'select',
                                  'placeholder' => 'Pilih salah satu',
                                  'options' =>           array(
                                    'Pelajar' => 'Pelajar',
                                    'Mahasiswa' => 'Mahasiswa',
                                    'Pegawai' => 'Pegawai',
                                    'Lainnya' => 'Lainnya',
                                  ),
                                ),
                            ),
                        ),
                    ),
                ),

    Please help...

    #12445
    kesitkesit
    Participant

    the field with id "saudara_status_test" is the field with the problem...

    #12914
    Anh TranAnh Tran
    Keymaster

    Hi kesit,

    We were unable to replicate the bug. We tested your code and it looks right. Here is our screenshot: https://prnt.sc/lvwk3z. Can you please check that again?

    Thanks

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