Default Value ('std') of a Radio Field

Support MB Blocks Default Value ('std') of a Radio Field

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37259
    Kyle MeltonKyle Melton
    Participant

    Hi we have several blogs that contain existing blocks built with MB Blocks. I am looking to add a radio button with a default value of Yes. The code below works on any new block that is added to a post/page but is there a way to force the default on blocks that already exist throughout the site?

    [
                    'name'    => __( 'Editor Comment?', 'bestxy-box' ),
                    'id'      => $prefix . 'editComment',
                    'type'    => 'radio',
                    'options' => [
                        'Yes' => esc_html__( 'Yes', 'bestxy-box' ),
                        'No'  => esc_html__( 'No', 'bestxy-box' ),
                    ],
                    'std'     => 'Yes',
                    'columns' => 6,
                    'inline'  => false,
                ],
    #37282
    Long NguyenLong Nguyen
    Moderator

    Hi Kyle,

    Currently, there is no way to update the field settings to a saved block. I will inform the development team to consider supporting this case in future updates.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.