- This topic has 2 replies, 2 voices, and was last updated 2 years, 3 months ago by .
-
Topic
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.