I have the below code in which only the first group is saved …any idea what I’m doing wrong?
piklist(‘field’, array(
‘type’ => ‘group’
,’field’ => ‘home’
,’label’ => ‘Home’
,’fields’ => array(
array(
‘type’ => ‘group’
,’label’ => ‘Top’
,’field’ => ‘top_box’
,’add_more’ => true
,’fields’ => array(
array(
‘type’ => ‘text’
,’field’ => ‘headline’
,’label’ => ‘Title’
,’columns’ => 4
),
array(
‘type’ => ‘text’
,’field’ => ‘url’
,’label’ => ‘Link’
,’columns’ => 4
),
array(
‘type’ => ‘file’
,’field’ => ‘image’
,’label’ => ‘Image’
,’columns’ => 2
,’options’ => array(
‘modal_title’ => ‘Add File(s)’
,’button’ => ‘Add’
,’save’ => ‘url’
)
)
)
),
array(
‘type’ => ‘html’
,’value’ => “<hr>”
),
array(
‘type’ => ‘group’
,’label’ => ‘Top’
,’field’ => ‘top_box’
,’add_more’ => true
,’fields’ => array(
array(
‘type’ => ‘text’
,’field’ => ‘headline’
,’label’ => ‘Title’
,’columns’ => 4
),
array(
‘type’ => ‘text’
,’field’ => ‘url’
,’label’ => ‘Link’
,’columns’ => 4
),
array(
‘type’ => ‘file’
,’field’ => ‘image’
,’label’ => ‘Image’
,’columns’ => 2
,’options’ => array(
‘modal_title’ => ‘Add File(s)’
,’button’ => ‘Add’
,’save’ => ‘url’
)
)
)
),
)));