Radio buttons

The Radio buttons block in Greyd Forms allows you to add a group of selectable options to a form. After inserting the block into the editor, you can immediately modify the label text directly within the interface.

Screenshot of Radio buttons block with its text label and two radio button fields added.

This block has a parent-child structure. The parent block defines the group settings, while each individual option is handled by a Radio button child block.

Settings

Screenshot of the Settings tab of Radio buttons block, explained in the following paragraphs.

Under the General section of the settings tab, you can customize the automatically prepopulated field name that will be sent with the form submission. Additionally, there is an option to make the field required, ensuring the user must select one of the provided options before submitting the form. You can also enable the multiselect functionality. Please note that the multiselect mode is not accessible to screen readers and should be used with caution in accessibility-sensitive contexts.

The Assistance section provides an input for tooltips. This tooltip will appear next to the label.

The block also supports Animations. In the Advanced section, you can find settings for additional CSS classes, the Greyd Styles Class and toggles to hide the block per breakpoint.

Styles

Screenshot of the Styles tab of Radio buttons block, explained in the following paragraphs.

In the Styles section, you can choose between three base styles: classic radio buttons, checkboxes, or an iOS-style switch. This selection controls the visual appearance but does not affect the logical behavior of the field.

The Dimension settings allow you to control padding of all sides and top and bottom margin for the component, leveraging core WordPress styling tools.

In the Layout section, you can define whether the options are displayed vertically (below each other) or horizontally (next to each other), depending on the space and form flow. This setting can be also adjusted per breakpoint.

The Appearance of the options section allows you to customize the font size and color of the option labels. The font size setting offers various options through the Range Unit Control component. You can also change these settings for hover and active states.

The Icon color setting defines the color used for the radio button or checkbox icons. Different colors can be set for hover and active states.

Under the Label section, you can adjust the font size and color of the main label for the block. The font size setting offers various options through the Range Unit Control component. You can also change these settings for the hover state.

Radio button child block

Each radio button added as a child block can be assigned a specific value. This value is what gets transmitted when the form is submitted and is used to identify the user’s selection in backend processing.

Screenshot of the Radio button child block with its value setting, explained in the previous paragraph.

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Last updated: