Re: qForms Question

2008-03-06 Thread C. Hatton Humphrey
I know I can do this in Javascript but I'm hesitant to roll my own when qForms is already validating the rest of the form (some 15 other required fields). Is there a way to do this in qForms? This should do what you want: http://www.pengoworks.com/qforms/ext/atLeastOne.htm You can

RE: qForms Question

2008-03-06 Thread Dan G. Switzer, II
I know I can do this in Javascript but I'm hesitant to roll my own when qForms is already validating the rest of the form (some 15 other required fields). Is there a way to do this in qForms? This should do what you want: http://www.pengoworks.com/qforms/ext/atLeastOne.htm You can

Re: qForms Question

2008-03-06 Thread C. Hatton Humphrey
Okay, made some changes to the qForms call - script type=text/javascript objForm = new qForm(catrequest); // set the path to the qForms directory objForm.setLibraryPath(/includes/qforms/lib/qforms/); // this loads all the default libraries objForm.include(*);

RE: qForms Question

2008-03-06 Thread Dan G. Switzer, II
-Original Message- From: C. Hatton Humphrey [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 2:28 PM To: CF-Talk Subject: Re: qForms Question Okay, made some changes to the qForms call - script type=text/javascript objForm = new qForm(catrequest); // set the path to the qForms

Re: qForms Question

2008-03-06 Thread C. Hatton Humphrey
You've also got to include the function that on in the page on: http://www.pengoworks.com/qforms/ext/atLeastOne.htm That code exists in /includes/qforms/lib/qforms/validation_addon.js that's why I thought forcing the include would work. (*scritch*) Hatton

RE: qForms Question

2008-03-06 Thread Dan G. Switzer, II
You've also got to include the function that on in the page on: http://www.pengoworks.com/qforms/ext/atLeastOne.htm That code exists in /includes/qforms/lib/qforms/validation_addon.js that's why I thought forcing the include would work. (*scritch*) The qFormAPI.include(*) only loads

qForms Question

2008-03-05 Thread C. Hatton Humphrey
I've inherited a form that is using qForms for validation. The form includes a series of three checkboxes, all with the same name but different values, further down there is a textarea. The client has asked for a validation rule that requires either one of the checkboxes to be checked, the

Re: qForms Question

2008-03-05 Thread Tom McNeer
Is there a way to do this in qForms? The short answer is yes. Here are the qForms docs: http://www.pengoworks.com/qforms/docs/. If you're still stuck, there's a qForms forum/list, which the author often answers. If you still want to roll your own, just add an onsubmit statement to your form

RE: qForms Question

2008-03-05 Thread Dan G. Switzer, II
Hatton, I've inherited a form that is using qForms for validation. The form includes a series of three checkboxes, all with the same name but different values, further down there is a textarea. The client has asked for a validation rule that requires either one of the checkboxes to be

Re: qForms Question

2008-03-05 Thread Tom McNeer
Dan, oForm.textareaName.validateAtLeastOne(checkboxName); That is extremely cool. I've been using qForms for a long time, but I didn't realize you could relate validations across elements that way. Thanks for the tip. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735

RE: qForms Question

2008-03-05 Thread Dan G. Switzer, II
Tom, oForm.textareaName.validateAtLeastOne(checkboxName); That is extremely cool. I've been using qForms for a long time, but I didn't realize you could relate validations across elements that way. Thanks for the tip. It's not a perfect solution--since you need to attach the validation to one

Re: qForms Question

2008-03-05 Thread Tom McNeer
Dan, It's not a perfect solution--since you need to attach the validation to one of the fields, but that custom method will do the trick for those validate either a or b type of situations. Seems pretty good to me. So -- the method you specified will validate that EITHER one of the

Re: qForms Question

2008-03-05 Thread C. Hatton Humphrey
BTW - Thanks for the quick answers! Hatton On Wed, Mar 5, 2008 at 3:21 PM, Tom McNeer [EMAIL PROTECTED] wrote: Dan, It's not a perfect solution--since you need to attach the validation to one of the fields, but that custom method will do the trick for those validate either a or b

RE: qForms Question

2008-03-05 Thread Dan G. Switzer, II
Tom, It's not a perfect solution--since you need to attach the validation to one of the fields, but that custom method will do the trick for those validate either a or b type of situations. Seems pretty good to me. So -- the method you specified will validate that EITHER one of the

OT: QForms Question..

2004-07-30 Thread Tangorre, Michael
Anyone here using qforms? Anyone see anything wrong with this? I keep getting an object expected error.. g form input type=Button name=btnDeletePoc value=Delete POC class=submit-button / /form objForm2.btnAddPoc.addEvent(onClick,spawnWindow('http://www.google.com'); );