|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Call a function selectively
I have a Javascript function that I call in my form submit, which validates the form. It looks like this:
<form name="form" method="post" action="process.cfm" onSubmit="Validate(this);return false"> It works fine, but I also want to be able to have a Save As Draft button, which would create a record in the db but would not validate the form. Can I selectively call this function only if they click Submit and not Save As Draft? I've tried calling it in the Submit button itself as an onClick, but I get errors when I do it this way. |
|
#2
|
|||
|
|||
|
This has nothing to do with ColdFusion. If someone knows the answer then fire away, but I recommend posting this in a more appropriate forum.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
My apologies. I re-posted in the JavaScript forum.
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Call a function selectively |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|