CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 select only 1 item in checkbox list

Print topic Send  topic

Author Message
peerkevand

Posts: 2
Posted: 01/17/2008, 2:10 AM

i want users to be able to select only 1 item in a checkbox list but what ever i try after publishing the page al check boxes can be checked and are updated if i check them. According to the manual user should be able to check only one checkbox if the checkbox list is based on a database column. Can any one tell me where i can find the property that controls this. I've also searched the examples and tried to accomplish it with the example many to many relationships (multiple property) but that doesn't work either. If it can't be done, i will have to program it in java en place it in the onclick event of the checkbox.
Hope someone has the answer for me
View profile  Send private message
Gena

Posts: 591
Posted: 01/17/2008, 2:25 AM

Normally checkbox list is used to give to user posibility to select MORE than 1 choices. In your case you need just use Radio buttons! Or no?
_________________
Gena
View profile  Send private message
peerkevand

Posts: 2
Posted: 01/17/2008, 3:51 AM

With radio buttons it works in my case. thanks for the advise
View profile  Send private message
chriscripps

Posts: 30
Posted: 01/18/2008, 3:41 AM

I had a similar request that did not fit into radio buttons. I used the OnValidate event, got the value of each box and made sure the sum was one. They could still chose more than one box, but it would not submit until there was exactly one box chosen.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.