Webflow

How to create a custom checkbox and radio buttons in Webflow forms?

Discover the best way to craft unique checkboxes and radio buttons within Webflow forms! Follow easy instructions to significantly boost your site’s look and feel. Enhance user experience effortlessly.

Developer profile skeleton
a developer thinking

Overview

Building unique checkboxes and radio buttons in Webflow forms helps you tailor your web design, boosting user satisfaction and matching your brand's look. It entails designing the style with Webflow’s Designer tool, adding custom CSS for deeper tweaks, and refining interactions and animations for a smooth finish. This customization lets you control form aesthetics better, resulting in a cohesive, eye-catching site that really grabs users' attention.

Get a Free No-Code Consultation
Meet with Will, CEO at Bootstrapped to get a Free No-Code Consultation
Book a Call
Will Hawkins
CEO at Bootstrapped

How to create a custom checkbox and radio buttons in Webflow forms?

Step 1: Add Checkboxes or Radio Buttons to the Form

  1. Fire up the Webflow Designer.
  2. Head over to the Form block where you want to toss in those checkboxes or radio buttons.
  3. Drag and drop the Checkbox or Radio Button component from the Add Elements panel right into your form block.

Step 2: Style the Checkbox or Radio Button Wrapper

  1. Click on the Checkbox Wrapper or Radio Button Wrapper in the navigator.
  2. Open the Style Panel and slap a custom class on the wrapper (like custom-checkbox or custom-radio).
  3. Set the display property to block so the elements stack up vertically.

Step 3: Hide the Default Input

  1. Inside the wrapper, select the Checkbox or Radio Button input.
  2. In the Style panel, add a custom class (e.g., checkbox-input or radio-input).
  3. Set these styles to hide the input element:
    • position: absolute;
    • opacity: 0;
    • width: 0;
    • height: 0;

Step 4: Create a Custom Checkbox or Radio Button

  1. Add a div element inside the Checkbox Wrapper or Radio Button Wrapper.
  2. Give this div a custom class (like custom-indicator).
  3. Style this div to look like a checkbox or radio button:
    • For a checkbox, set the height and width to 20px, and the border to 2px solid #000;.
    • For a radio button, set the height and width to 20px, make the border-radius 50%, and set the border to 2px solid #000;.

Step 5: Style the Indicator for Checked State

  1. Select the custom-indicator div.
  2. Go to the Style Panel and use interactions to change the style when the checkbox or radio button is checked.
  3. Add an interaction to trigger on the checkbox-input or radio-input. Create a new animation, and set conditions based on the checkbox/radio state:
    • For checkboxes: Add a smaller div inside the custom-indicator, use interaction to show it when the checkbox is checked.
    • For radio buttons: Change the background color or add a smaller circle inside the custom-indicator to show it's checked.

Step 6: Add Label Text

  1. Add a text element inside the Checkbox Wrapper or Radio Button Wrapper after the custom-indicator.
  2. Assign a class to this text element (like check-label or radio-label).
  3. Style the text label however you like, adjusting font, color, and spacing.

Step 7: Test the Custom Checkboxes and Radio Buttons

  1. Publish your Webflow project.
  2. Check out the live site and play around with the custom checkboxes and radio buttons to make sure they work and look right.
  3. Make any tweaks to the interactions or styles based on what you see.

Following these steps should help in creating visually appealing custom checkboxes and radio buttons in Webflow forms.

Explore more Webflow tutorials

Complete Guides to Webflow: Tutorials, Tips, and Best Practices

Explore our Webflow tutorials directory - an essential resource for learning how to create, deploy and manage robust server-side applications with ease and efficiency.

Why are companies choosing Bootstrapped?

40-60%

Faster with no-code

Nocode tools allow us to develop and deploy your new application 40-60% faster than regular app development methods.

90 days

From idea to MVP

Save time, money, and energy with an optimized hiring process. Access a pool of experts who are sourced, vetted, and matched to meet your precise requirements.

1 283 apps

built by our developers

With the Bootstrapped platform, managing projects and developers has never been easier.

hero graphic

Our capabilities

Bootstrapped offers a comprehensive suite of capabilities tailored for startups. Our expertise spans web and mobile app development, utilizing the latest technologies to ensure high performance and scalability. The team excels in creating intuitive user interfaces and seamless user experiences. We employ agile methodologies for flexible and efficient project management, ensuring timely delivery and adaptability to changing requirements. Additionally, Bootstrapped provides continuous support and maintenance, helping startups grow and evolve their digital products. Our services are designed to be affordable and high-quality, making them an ideal partner for new ventures.

Engineered for you

1

Fast Development: Bootstrapped specializes in helping startup founders build web and mobile apps quickly, ensuring a fast go-to-market strategy.

2

Tailored Solutions: The company offers customized app development, adapting to specific business needs and goals, which ensures your app stands out in the competitive market.

3

Expert Team: With a team of experienced developers and designers, Bootstrapped ensures high-quality, reliable, and scalable app solutions.

4

Affordable Pricing: Ideal for startups, Bootstrapped offers cost-effective development services without compromising on quality.

5

Supportive Partnership: Beyond development, Bootstrapped provides ongoing support and consultation, fostering long-term success for your startup.

6

Agile Methodology: Utilizing agile development practices, Bootstrapped ensures flexibility, iterative progress, and swift adaptation to changes, enhancing project success.

Yes, if you can dream it, we can build it.