Hi Mark,

Mark Fuqua wrote:
Thanks Jeff, let me see if I got this:

 If I make the call to the PLUM header, I don't have to call the script at
the top of the page.


I misspoke, sorry. I just checked and the calls to the qForms API are in the DisplayAdd/Edit custom tags and not in the header file. I used a DisplayAddForm tagset with a couple of display columns in my form. If you can use the DisplayAdd/Edit forms, it will make your life easier, but you can build a form manually. I recommend downloading the qForms API, that has all the documentation for the API from Dan Switzer's site at:

http://www.pengoworks.com/qforms/download/

You will need to look this over to see what all the available method calls are, 
etc.


Javascript is case sensitive right?  I need to make my references to form
fields with the same UppErLowerCase as they are on the page?

Yes.


In you example, there are two lines that start "objFormIssue.required"?  Is
the line that starts with // a comment?


Yes.

In your example, if the user does not fill in the ACSSID field, the pop up
message would say "Aircraft Sub-System is required"?

Yes. You can also override the message with another method reference, I believe, although I haven't done this in quite some time. Refer to the API documentation for the available methods/properties.

Jeff



Thanks,

Mark



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jeff
Fleitz
Sent: Saturday, September 17, 2005 7:13 PM
To: [email protected]
Subject: Re: [plum] qforms validation


Hey Mark,

Just qForms like you would in a normal form if you weren't using Plum. Are
you using the Plum header call on you form?
If so the library is loaded for you. Then after all the closing </form> tag,
include the JS to call qForms. Read up on
the API if you are not familiar.

This is some code I used in a form that used Nate Weiss'
<cf_TwoSelectsRelated> tags within a DisplayAddForm tagset At
the bottom of the page, after the closting  tag (</cf_DisplayAddForm>), I
just wrapped the calls inside a JS block like
I would do if I weren't using Plum at all.  You need to make sure you
reference the form name for your page.


...

</cfmodule> <!--- Closing DisplayAddForm tag --->


<!--- Add qForms validation for controls not called through Plum tags --->
<script type="text/javascript">
//objFormIssue.required("ACSystemID,ALSEID,ALSESSID,CBIPEID,CBIPESSID");
objFormIssue.required("ACSystemID,ACSSID,ALSEID,ALSESSID,CBIPEID,CBIPESSID")
;
objFormIssue.ACSystemID.description = "Aircraft System";
objFormIssue.ACSSID.description = "Aircraft Sub-System";
objFormIssue.ALSEID.description = "ALSE";
objFormIssue.ALSESSID.description = "ALSE Sub-System";
objFormIssue.CBIPEID.description = "CB IPE";
objFormIssue.CBIPESSID.description = "CB IPE Sub-System";
</script>


HTH,

Jeff




Mark Fuqua wrote:

On a page that doesn't use plum custom form tags, but is however, within

the

plum framework, how do I use the qforms field validation?

Thanks,

Mark



**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************




**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************



**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************



**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************

Reply via email to