No std value selected in block's radio field

Support MB Blocks No std value selected in block's radio field

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #17587
    PrzemekPrzemek
    Participant

    I have a problem with setting default value on radio field with MB Blocks.

    The field declaration seems to be OK:

    [
        'name'    => esc_html__( 'Choose type', 'my-mb' ),
        'id'      => 'resource-type',
        'type'    => 'radio',
        'options' => [
            'link'       => esc_html__( 'Link', 'my-mb' ),
            'attachment' => esc_html__( 'Attachment', 'my-mb' ),
        ],
        'std'    => 'link',
    ],

    Unfortunately, no option is chosen when I insert the block (also in new post).

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.