Good day. Here I ran into a task that I can’t decide which day. There is a repier
array(
'key' => 'field_af_006',
'label' => 'Disp',
'name' => 'af_clients',
'type' => 'repeater',
'sub_fields' => array(
array(
'key' => 'field_af_0061',
'label' => 'Tel_1',
'name' => 'af_phone_one',
'type' => 'text',
'column_width' => '',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array(
'key' => 'field_af_0062',
'label' => 'Tel_2',
'name' => 'af_phone_two',
'type' => 'text',
'column_width' => '',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
),
'min' => '',
'row_limit' => '',
'layout' => 'table',
'button_label' => 'Add Row',
),
It is like other fields made through the register_field_group ()
function.
How do I set it the minimum and maximum number of rows through a variable whose value will be another field?
P.S. If something is not clear, write. I don’t understand English very well. I use Google to translate.