Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


set default radio button state?
Date: 2006/06/24 11:58 By: juliecracker Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
I am using a field to "hide" a user (so they are filtered from lists). Originally I used a checkbox (so the default state is "NULL" or do not hide, and the user must explicitly check the box to hide themselves). After finding the hack to ensure the filtering worked (since using the profile editor sets the checkbox field to an empty string "" and it is no longer NULL!), I found out that you can not _uncheck_ the box in the back end.

So I figured I could change my field to a radio button - Hide? Yes or No. But I still want to have a default ("No") so that it is clear to the user they must explicitly choose "Yes" to be hidden.

There doesn't seem to be a way to establish which radio button state is the "default". It's not the first one in the list. Since the definition of a radio button set is that exactly one option is always true, this seems incorrect.

I can handle this in my filtering (although hopefully I won't forget that "No" and NULL and "" are all equivalent values!), but I was hoping someone might know something I don't about how to set up a radio button field.

Thanks,
julie
Click here to see the profile of this user The topic has been locked.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login