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

 Condition depending of radiobutton choice

Print topic Send  topic

Author Message
gproulx


Posts: 68
Posted: 08/16/2007, 11:44 AM

Hi,

I have a popup window which have a grid with data from db. I added a radiobutton control with 2 values (from a list of values, not db). I also add a button.
What i wanted to do with the button is ; if the first value of the radiobutton is selected->open a new blank page, if it's the second value that are selected, i wanted the popup window to be closed. I tried several things but my button doesn't seem to perform any validation/operation.

Help please!!:-)

Thanks in advance

View profile  Send private message
klwillis


Posts: 428
Posted: 09/03/2007, 11:06 AM

The radio button stores a group of values as an array.

So, if the name of your radio button is 'WindowAction', then
you can use the following conditional logic:

//if first radio button selected.
if (WindowAction[0].checked)
{
//open a new blank page.
}
//else
else
{
//close popup window.
}
//endif first radio button selected.


Quote gproulx:
Hi,

I have a popup window which have a grid with data from db. I added a radiobutton control with 2 values (from a list of values, not db). I also add a button.
What i wanted to do with the button is ; if the first value of the radiobutton is selected->open a new blank page, if it's the second value that are selected, i wanted the popup window to be closed. I tried several things but my button doesn't seem to perform any validation/operation.

Help please!!:-)

Thanks in advance



_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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