• Resolved tderksen

    (@tderksen)


    I created a option page with following group field:

    $cmb_options->add_group_field( $group_field_id_receiver, array(
    'name'       => esc_html__( 'Form ID', 'xyz' ),
    'id'         => 'prefilled_receiver_form_id',
    'type'       => 'text',
    'desc'       => 'xxx',
    'save_field' => false,
    'attributes' => array(
        'readonly' => 'readonly',
        'disabled' => 'disabled',
    ),
    ) );

    On every save the value will be empty. Even if there was a valid imput. Without disabeld it works…

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I guess my main question is what is the purpose of this field? just a way to view a value that was brought in from somewhere else?

Viewing 1 replies (of 1 total)
  • The topic ‘Group Field with save_field and disabled stores allways empty field’ is closed to new replies.