>> 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("*") o
> 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
~~~
/ext/atLeastOne.htm
-Dan
>-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 -
>
>
>
>objForm = new qForm
Okay, made some changes to the qForms call -
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("*");
objForm.catalogtype.description = " catalog type
>> >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.
> >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
>
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
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
> >
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 c
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 validatio
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 Joh
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 c
>
> 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
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 te
Anyone here using qforms?
Anyone see anything wrong with this?
I keep getting an "object expected" error.. g
class="submit-button" />
objForm2.btnAddPoc.addEvent("onClick","spawnWindow('http://www.google.com');
");
objForm2.btnDeletePoc.addEvent("onClick","myTestFunction(); ret
15 matches
Mail list logo