CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Detect button clicked

Print topic Send  topic

Author Message
Karen
Posted: 10/30/2003, 1:02 AM

I have a custom button on my record form for which I would like to run a validation routine for, but not for other submit buttons. Therefore I need to be able to put a condition for the validation that says it is only when the custom button is clicked. How do I detect which button is clicked? I'm using PHP/MySQL with CCS2.

Thanks in advance for all advice and suggestions.
ryan
Posted: 10/30/2003, 3:45 PM

can you work with a client side validation when that custom button is clicked like

<input type=button Onclick="yourevent();"... />

then do the validation routine for that, create the function yourevent() :)
Karen
Posted: 11/02/2003, 7:05 AM

Thanks, Ryan, for your suggestion. But I couldn't make do with client-side validation. So after thinking a bit, I decided to do a CCGetParam("button") to detect if that button has been clicked. And I'm happy to report that it works!

   


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.