Yes.
Pass an associative array to the label argument.
array( // Repeatable Drop-down List
'field_id' => 'select_repeatable',
'title' => __( 'Repeatable Dropdown List', 'admin-page-framework-demo' ),
'type' => 'select',
'repeatable' => true,
'description' => __( 'To enable repeatable fields, set the <code>repeatable</code> key to true.', 'admin-page-framework-demo' ),
'default' => 'y',
'label' => array(
'x' => 'X',
'y' => 'Y',
'z' => 'Z',
),
),
Excellent, thanks for the help. I was able to get this working after I realized I wasn’t passing an associative array in my function.
I do have one more question, is it possible to do a conditional field based on another field setting?
I saw the “if” parameter, but how would I go about:
array(
‘field_id’=> ‘field1’,
‘type’ => ‘radio’,
‘title’ => ‘radiof’,
‘lable’ => ‘array(‘1’=>’Yes’, ‘0’=>’No’)),
array(‘field_id’ => ‘field2’,
‘type’ => ‘text’,
‘title’ => ‘Name’,
‘if’ => \\If radio field equals 1 return true
thank you for this wonderful plugin, it has cut down on the amount of hours I would be creating a theme with.
Glad that the framework helped you. As for the new question, can you post a new topic about it? Thank you.