On / Off radio button

Hello, I'm a rookie :slight_smile: I'll ask some questions to the community during the learning process, I hope you can help.

I want to add a radio button ON - OFF button, can you please teach me how to do this.

1 Like

Hey @Ayhaner — welcome to the Retool community!

Retool has a Switch component that you can use for this. Here's an example of it in action.

In your design, it looks like the label text is meant to be dynamic depending on the value of the switch. You can use this code in the label property of the switch to do the same thing in Retool:

{{self.value ? 'On' : 'Off'}}

1 Like

Thank you very much.

Hi @alex, I found the relevant component and added it but I can't see some settings. In the screenshot you sent there are more settings options. Is this because I'm using the free plan?

To access the settings for the label (which is a sub-component of the switch component) you will need to click on one of these three areas:

  1. the label sub-component on the canvas
  2. the Label text in the right hand sidebar (we call this section the Inspector)
  3. or if no label is present, you can click the + button in the Add-ons section in the Inspector and add a label

I now understand why the screens look different. The screenshots you sent me are for web applications. I am working on a mobile application project. The component settings on the mobile application screen look different.

Web app screen:

Mobile app screen:

2 Likes