CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Radio buttons for multi-choice.

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 02/08/2005, 7:33 PM

I am hoping that someone has done this before and can pass on advice.
I have a table with ID, name, question and 5 possible multi-choice answers ranging from never to always. There are 100 questions that have to be answered. I want to use an editable grid with radio buttons for the answers. Obviously, only one answer can be selected.

I do not understand how the radio buttons are suppossed to work. In the editable grid I cannot give them all the same name so that they are grouped but a possibility may be that through PHP code I can unselect all the remaining radio buttons in a record when a button is selected.

If anyone can help with this it would be very much appreciated.

Thanks in advance,
Trevor
View profile  Send private message
peterr


Posts: 5971
Posted: 02/08/2005, 10:18 PM

I think that you don't need to use editable grid for the answers. Just use a single radio-button control and it will display all 5 options.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
saseow

Posts: 744
Posted: 02/08/2005, 11:32 PM

Thanks Peter but I am not sure I understand what you mean. If I don't display all 100 questions in an editable grid, how is the user going to go from question to question and answer them all? Also, I don't understand how 1 radio button can display all 5 options?

Please could you elaborate a little more.

Thanks,

Trevor
View profile  Send private message
peterr


Posts: 5971
Posted: 02/08/2005, 11:47 PM

The questions can be shown using any method you like (editable grid or record), however I meant that you don't need to use editable grid to create the list of answers (the 5 answer options). If you use use a single radio-button control then it will display all 5 options.
Though if you're using editable grid to display the list of questions then I don't understand your original question. You don't need to create multiple radio button controls, just one. That one radio button control will display all 5 choices.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
saseow

Posts: 744
Posted: 02/09/2005, 2:21 AM

Hi Peter,

The penny has finally dropped as to how radio buttons work in CCS. Forgive the ignorance here, it must be the heat :-/

Thanks for your help!

Trevor
View profile  Send private message
peterr


Posts: 5971
Posted: 02/09/2005, 10:31 AM

Any time :)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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