Checkboxes, radio buttons, and select inputs - Webflow University Documentation (2024)

University

HomeSearch⌘EDashboard

Try Webflow — it's free

Learn

CoursesDocsInteractive LearningGlossaryCertifications

Engage

SupportCommunityEventsForum

Accessibility

Switch to Light modeSwitch to Dark modeHigh contrast

Checkboxes, radio buttons, and select inputs - Webflow University Documentation (1)

Trusted by teams at

Checkboxes, radio buttons, and select inputs - Webflow University Documentation (2)Checkboxes, radio buttons, and select inputs - Webflow University Documentation (3)Checkboxes, radio buttons, and select inputs - Webflow University Documentation (4)Checkboxes, radio buttons, and select inputs - Webflow University Documentation (5)Checkboxes, radio buttons, and select inputs - Webflow University Documentation (6)Checkboxes, radio buttons, and select inputs - Webflow University Documentation (7)Checkboxes, radio buttons, and select inputs - Webflow University Documentation (8)

All docsElements

We’re transitioning to a new UI, and are in the process of updating our Webflow University content.

You can use checkboxes, radio inputs, and select inputs when you’re creating surveys, forms, or anything else that requires a site visitor to input 1 or many choice(s).

In this lesson, you’ll learn about:

  1. Checkboxes
  2. Radio buttons
  3. Select inputs
  4. Customizing checkboxes and radio buttons

Keep in mind that all form inputs (i.e., checkboxes, radio buttons, and select inputs) can only be placed inside of a form block.

Checkboxes

Checkboxes allow a site visitor to select multiple choices.

You can manage checkbox settings in Element settings panel > Checkbox field settings.

  • Name — we recommend you set checkbox names so you can identify them in the form submission data
  • Style — you can set the checkbox’s style to default or customize the styling
  • Required — sets the checkbox as a required form field. For instance, you can set an “I read and agree to the Terms and Conditions” checkbox as a required field
  • Start checked — the checkbox defaults to the checked state

Radio buttons

Radio buttons allow a site visitor to select a single option from multiple options.

You can manage radio button settings in Element settings panel > Radio button field settings.

  • Group name — sets the name of the group of radio buttons. For example, if your site visitors are submitting a favorite color choice, you would set “Favorite color” as the group name for each radio button color choice.
  • Choice value — sets the value of the radio button submission. For example, if your site visitors are submitting a favorite color choice, you would set “Red” as the choice value for the “Red” radio button color choice. Note that choice value isn’t the same as the radio button’s on-canvas label.
  • Style — you can set the radio button’s style to default or customize the styling
  • Required — sets the radio button as a required form field. Only 1 of the radio buttons in a group needs to be set as Required for the whole radio button group to be required.
Important: If you set a radio button as Required, but don’t have a Group name for the radio button group, that specific radio button will have to be selected before the form can be submitted.

Select inputs

Select inputs provide a dropdown list of choices. You can manage select input settings in Element settings panel > Select field settings.

  • Name — we recommend you set select input names so you can identify them in the form submission data
  • Choices — click the “plus” icon to add a new choice to the select input and set the on-canvas value in the Text field and the choice value in the Value field. You can also edit choices by clicking the “pencil” icon, delete a choice by selecting the “trash” icon, and reorder choices by clicking and dragging the dotted line next to the choice name
  • Required — sets the select input as a required form field
  • Allow multiple selection — lets site visitors choose more than 1 option. Site visitors can select multiple choices using Command + Click (on Mac) or Control + Click (on Windows)

Customizing checkboxes and radio buttons

To override the default styling of checkboxes or radio buttons, select the element on the canvas, go to Element settings panel > Element field settings (i.e., Checkbox field settings or Radio button field settings) and select “Custom” under Style.

Then, you can customize the elements using the Style panel. If you want to switch back to the default styling, you can do that by choosing “Default” under Style.

Note: If you set custom styling and reuse the same class on another checkbox or radio button, make sure “Custom” is selected under Style on the new checkbox or radio button.

Customize the “checked” state

Once you enable “Custom” styling for these elements, you can select the buttons on the canvas (i.e., either “Radio button” or “Checkbox”) and style them in different states, including a custom checked state. The checked state lets you control how these elements look when they’ve been selected.

Note: To ensure radio buttons and checkboxes are accessible for people using arrow keys to navigate through forms, the focused state of both elements come with a default blue shadow.

Table of contents

Continue learning

Archive a siteSite settings
Asset privacyGetting started
Build a locale switcherLocalization
Code blockElements
Copyright (DMCA) Takedown NoticeGetting started
Custom elementElements
Duplicate a siteSite settings
Integrate the HubSpot AppApps
Keep your Webflow account secureSecurity
Localization overviewLocalization
Localize Collection contentLocalization
Localize content and stylesLocalization
Localize page settingsLocalization
Localized SEO and locale routingLocalization
Manage Localization add-on plansLocalization
Set a global canonical tag to improve SEOSEO
Site-specific accessCollaboration
Transfer a siteSite settings
View your account security activitySecurity
Edit modeGetting started
Webflow Apps overviewGetting started
Add Shopify products to your Webflow siteIntegrations
Connect Webflow to third-party apps with ZapierIntegrations
Embed Soundcloud tracks on your Webflow siteIntegrations
Embed an Eventbrite checkout on your Webflow siteIntegrations
Embed dynamic Twitter share buttons on your Webflow siteIntegrations
Integrate Optimizely for A/B testingIntegrations
Embed an Instagram feed on your site with ElfsightIntegrations
CommentsCollaboration
V Flex and H Flex elementsElements
Creator CreditsSite settings
Quick StackElements
Webflow staging subdomainSite settings
Disable spellcheck with custom attributesElements
Create contacts in HubSpot with Webflow LogicLogic
Create records in Airtable with Webflow LogicLogic
Agency or Freelancer guest roleCollaboration
Contribute to the Webflow MarketplaceGetting started
Page branchingCollaboration
Webflow ExpertsGetting started
Webflow Marketplace overviewGetting started
Make HTTP requests with LogicLogic
Webflow Logic overviewLogic
Marketo forms integrationIntegrations
Copy and paste between sitesElements
Save your site as a shared Workspace templateTemplates
Webflow templates overviewTemplates
Upload custom fontsSite settings
Set 301 redirects to maintain SEO rankingSEO
Next

Hmm…we couldn’t find any results for “search query”. Try a different search term or check out our community forum.

Search the forumReset the filter

Load more

Filter

Reset

Thank you! Your submission has been received!

Oops! Something went wrong while submitting the form.

Topics

Thank you! Your submission has been received!

Oops! Something went wrong while submitting the form.

Back to top

Checkboxes, radio buttons, and select inputs - Webflow University Documentation (2024)

FAQs

Which form control is used for collecting multiple choices from the user? ›

Checkboxes allow a site visitor to select multiple choices.

What is the difference between a checkbox and a radio button? ›

Checkboxes and radio buttons are elements for making selections. Checkboxes allow the user to choose items from a fixed number of alternatives, while radio buttons allow the user to choose exactly one item from a list of several predefined alternatives.

Can you style input checkbox? ›

One of the simplest and most common ways to style a checkbox is to use input[type=checkbox] or pseudo selectors to set the style with CSS properties based on a specific state.

How do you style a checked checkbox? ›

To have full control of the styling of a checkbox, you can hide the checkbox input and use the input's ::before pseudo element to create a custom-styled checkbox. Setting the CSS appearance property to “none” hides the checkbox input. The input is made into a flexbox with its contents centered within the set border.

How do I customize a select field in Webflow? ›

In the Navigator you will see a custom code element called "style-settings". Open that up and you will see the different options for Color and Spacing. Comments are used as well so you know which does what. Simply copy and paste in your own color and spacing values.

What is the difference between select and checkbox? ›

Radio Buttons and Select fields only allow the users to choose one item, while Checkboxes and Multiselects allow multiple items to be chosen from the list.

How do you set a checkbox input? ›

The <input type="checkbox"> defines a checkbox. The checkbox is shown as a square box that is ticked (checked) when activated. Checkboxes are used to let a user select one or more options of a limited number of choices. Tip: Always add the <label> tag for best accessibility practices!

How do I add a checkbox to an input box? ›

<input type="checkbox"> <input> elements of type checkbox are rendered by default as boxes that are checked (ticked) when activated, like you might see in an official government paper form. The exact appearance depends upon the operating system configuration under which the browser is running.

What is the difference between a button and a radio button? ›

The question is "what do you really need?" Buttons and Radio buttons serve different purposes. A Radio button is a group of more than one option, and limits the user to selecting only one option within the group. A radio button is used for data collection. A button, can be used to trigger other events.

What is the difference between a group of checkbox buttons and a group of radio buttons? ›

In a checkbox group, a user can select more than one option. Each checkbox operates individually, so a user can toggle each response "on" and "off." Radio buttons, however, operate as a group and provide mutually exclusive selection values. A user can select only one option in a radio button group.

What is difference between check box and option button? ›

Check boxes work well for forms with multiple options. Option buttons are better when your user has just one choice.

Can you style radio buttons in CSS? ›

The traditional way to customize radio buttons usually involves extra HTML elements or wrapping the radio input with a label, coupled with the use of :before and :after pseudo-elements. However, with the advancements in modern CSS, we can now style them with just the input element alone.

How do you style the selected label of a radio button? ›

Solution with the CSS :checked pseudo-class

In our example, we set the display of our labels to "inline-block" and then continue styling by setting the background-color, padding, font-family, font-size, and cursor properties. After that, you can style the selected <label> element differently.

How do I change styles in Webflow? ›

You can either override the inherited styles, indicated by the orange style icon, or go to the class or tag and edit the style there. You can access all the classes and tags that style the current element from the Inheritance menu. From this menu, you can select and temporarily style a class or tags.

Top Articles
Latest Posts
Article information

Author: Duncan Muller

Last Updated:

Views: 5650

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.