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!
|
|
|
|