KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Grouping radio buttons
PRODUCT: 4D | VERSION: 2003.2 | PLATFORM: Mac & Win
Published On: March 11, 2004
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When working with forms, you might want to add multiple groups of radio buttons.

For example, one group might choose the color of a car and the other group might choose the make of the car.

Our goal is to allow the user to select one radio button from each group. To do this, all we have to do is make sure that the first characters of the radio buttons' VARIABLE NAMES are the same for each group designation.

So in the example, one might name the "color" group's items cradio1, cradio2, cradio3 and the "make" group mradio1, mradio2, mradio3.