CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 validate check box based upon listbox

Print topic Send  topic

Author Message
kirchaj

Posts: 215
Posted: 03/25/2010, 11:08 AM

Ok guys, here is what I need to do. I have 4 fields set as check boxes that can only be checked when the selection of a listbox is a certain value.

Any ideas on how to accomplish this?

Any help would be appreciated.

TK
View profile  Send private message
damian

Posts: 838
Posted: 03/25/2010, 6:49 PM

look at a .js solution - examples at javascript.internet.com

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
kirchaj

Posts: 215
Posted: 03/26/2010, 6:39 AM

Damian,

Thanks for your reply. I hate to show my ignorance but I have no idea how to use the javascript from within CCS. Do you have an example of use in CCS that may help?

Thanks again.

TK

BTW: is there no way to do this from within CCS?
View profile  Send private message
melvyn


Posts: 333
Posted: 03/26/2010, 7:58 AM

No. CCS is a tool to generate server-side web database driven applications in PHP, ASP, .NET, Perl, etc.

There's no way to "generate javascript code" from CCS. You need to place your custom code in the html/js files, by hand, as with any other application.
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com
View profile  Send private message
kirchaj

Posts: 215
Posted: 03/26/2010, 8:04 AM

showing my ignorance again. What about the onvalidate event?
View profile  Send private message
kirchaj

Posts: 215
Posted: 03/28/2010, 12:17 PM

Ok, I was able to figure out how to get the validation to work and display an alert box if the values did not match. Any way I can keep the form from updating or inserting? The user can clear the warning and then still submit the form.

Thanks for all the help.

TK
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 03/29/2010, 11:07 AM

kirchaj,
Please don't forget to add [Solved] or [Resolved] to the thread title. Thanks.
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.