Forums

can I test and abort in OnSubmit code?

hcethatsme 02 Sep, 2008
I'm not positive if this is what the thread below is referring to:
http://www.chronoengine.com/forums.html?cont=posts&f=4&t=10161&start=0&st=0&sk=t&sd=a&hilit=abort
I have a form being filled out where I would like to NOT send an email if the person hasn't paid attention and isn't eligible. I realize I could do this with JavaScript but I wonder if there's a way to use the OnSubmit code to abort sending the email and instead show an explanation?

No big deal if not--I just don't want to be missing a simple way to do it. Thanks!

Hilary Caws-Elwitt
Max_admin 02 Sep, 2008
Hi Hilary,

If you have version 3 BETA 2 then simply you can use the server side validation and check for something, if it failed you can return them to the form with an error message you write, is this what you are looking for ?

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.