home-icon
Radio button
Last updated: Dec 04, 2023

Introduction

The dropdown element presents the content manager with a list of options to choose from.

This element is also available for forms, enabling website users to also have a list of radio  button options.

Adding a radio button

When adding a radio button to a partial or form, you should first specify a name.

After you have done that, you need to specify the options semicolon (;) separated.

Example: red;blue;yellow;purple, this creates a radio button group with four options (red, blue, yellow, purple).

Displaying radio button data

The radio button data is presented in a simple PHP variable with the same name as the element.

Use this to display the selected value of the radio button group: 

<?=$name_of_radiogroup;?>