This will work for JS v1.2: Field.prototype.killValidation = function(){ var q = this.qForm._queue.validation; // loop through validation queue, and remove references of for( var j=0; j < q.length; j++ ){ if( q[j][0] == this.name ){ q.splice(j,1); j--; } } }
-Dan > -----Original Message----- > From: Gyrus [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 12, 2003 3:49 PM > To: CF-Talk > Subject: OT: disabling qForms validation > > 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