• Resolved Begin

    (@bentalgad)


    When i use this code:

    $pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
    'name' => 'place',
    'id' => 'place',
    'type' => 'select',
    'show_option_none' => true,
    'options' => $places_options,
    ) );
    $pro_paypal_box->add_group_field( $pro_paypal_kidum, array(
    'name' => 'kidum_state',
    'id' => 'state',
    'type' => 'select',
    'show_option_none' => true,
    'default' => 'active',
    'options' => array(
    'active' => 'active',
    'canceled' => 'canceled',
    ),
    ) );

    I get ‘canceled’ as default option.

Viewing 5 replies - 31 through 35 (of 35 total)
Viewing 5 replies - 31 through 35 (of 35 total)
  • The topic ‘The default parameter don’t work in group fields’ is closed to new replies.