Custom Fields
Re-Envisioned
Support MB Frontend Submission Select on cloned group can't be updated

This topic contains 2 replies, has 2 voices, and was last updated by  Anh Tran 1 month, 1 week ago.

  • Creator
    Topic
  • #12444

    kesit
    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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #12445

    kesit
    Participant

    the field with id “saudara_status_test” is the field with the problem…

    #12914

    Anh 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 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.