Add

Lorem ipsum

Lorem ipsum

Design

1 views

3 min

Have a radio button selected by default in Webflow

Introduction

StepAction
1Add your radio buttons to the Webflow form
2Add a value to each radio button
3Get the ID of the radio button you want selected by default
4Add the script to the page head

Not possible natively in Webflow, Sandro, cofounder of the Gemeos Webflow agency, shows you how to have a radio button selected by default in your form when the page loads in Webflow.

Super useful for improving the user experience in some cases, especially for feedback forms, for example.

1. Add your radio buttons

Radio button Webflow

‍

2. Add a value to your radio buttons

Radio Button Value Webflow

‍

3. Add this script to the <head> of your page

Make sure you replace the ID value with the value of the radio button you want selected by default in the code below.

 

good to know

No-JavaScript alternative: add the custom 'checked' attribute (Name: checked, Value: empty) directly to your radio button in Webflow. This native approach has been supported since 2023 and is simpler than the script.

4. Publish and test the result

‍

Published on 10.04.2025

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...