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
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
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(*);
-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
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
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
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
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
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
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
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
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
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
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
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');
);
15 matches
Mail list logo