Skip to content

Design3 min read

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

Webflow radio button

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.

<script>
window.onload = function() {
    var radioButton = document.getElementById("incroyable");
    if (radioButton) {
        radioButton.checked = true;
    }
};
</script>

4. Publish and test the result

Published on Apr 10, 2025

Sandro DA SILVA

Growth Marketer, Webflow expert, and jack-of-all-trades. Sandro handles commercial operations, ensures projects run smoothly, and addresses marketing-related issues (SEO, Tracking, Copywriting, etc).

You're going to working with us, guaranteed

Ready to launch your business?

get a quote

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