• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 17. Using Components > Using the RadioButton Component

Using the RadioButton Component

With radio buttons (like the old mechanical buttons on car radios), you can select only one button at a time. Selecting which radio station to play requires that you pick just one. If you change your mind, that's fine, but you can't play two stations at once. It's important to use radio buttons only for this kind of situation—for instance, when the user selects from mutually exclusive choices, such as male and female. On the other hand, check box buttons (for which there's another User Interface component) allow for multiple selections.

You always use RadioButton components in groups; for example, two buttons (male and female) in a gender group and three buttons (novice, intermediate, expert) in a skill level group. Like other components, each RadioButton component has a label and a value. Depending on the interaction you're building, you might want to trigger code immediately when the user makes a selection or wait until the user is satisfied with his selection and clicks Continue. The one thing I'd suggest you avoid is proceeding to a new screen immediately after a user clicks. That's because the user might have made a mistake, or might want to change her mind. You'll explore all these details in the following task.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint