A slight problem I'm having with qForms JS API. I have different submit
buttons that do different things on my form, and I want some of them to just
skip the whole qForms validation process.

For instance, some fields have a configurable number of rows, and the
buttons to add or remove rows are submit buttons, so the current state of
the form is reloaded.

I do have an OKish solution - for the submit buttons that don't need
validation, I add this to the onclick event:

objForm._allowSubmitOnError = true; objForm._showAlerts = false;

It just seems a little clumsy - the validation is run anyway, only the
alerts aren't shown and submit is allowed. Any quick way to just say
"objForm.justForgetItForNow"?

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://norlonto.net
PGP key available

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to