Change button label of a repeatable field
-
How to change button label of a repeatable select field?
In a repeatable text field would be:
$cmb->add_field(array( 'name' => 'text', 'id' => '_text_id', 'type' => 'text', 'repeatable' => true, 'options' => array( 'add_row_text' => 'Add Field' ) ));
But select?
$cmb->add_field(array(
‘name’ => ‘text’,
‘id’ => ‘_select_id’,
‘type’ => ‘select’,
‘repeatable’ => true,
‘options’ => array(
‘1’ => ‘Option 1’
)
));
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Change button label of a repeatable field’ is closed to new replies.