Will, Move the function back to where it was and do this:
function init(){ // initialize the qForm object objForm = new qForm("evalfilterform"); // make these fields required objForm.required("Tier7,Tier6,Tier5"); // this example shows how you could pre-populate the form setDefaults(); } While you're defining the function, you're never actually *executing* the function... -Dan >-----Original Message----- >From: Will Tomlinson [mailto:[EMAIL PROTECTED] >Sent: Monday, June 11, 2007 5:54 PM >To: CF-Talk >Subject: Re: qForms - How to maintain selections? > >> >>Better yet, put it in the init() function. >> >>FYI - Used Firebug to add the following HTML code right after the View >>Report button: > >Thanks for helpin' me with this Dan. I'm trying to setDefault() in the >init(). It still doesn't seem to work. I know I'm not doin' somethin' right >here. > >This is the end of my JS now: > >function init(){ > // initialize the qForm object > objForm = new qForm("evalfilterform"); > > // make these fields required > objForm.required("Tier7,Tier6,Tier5"); > // this example shows how you could pre-populate the form > > function setDefault(){ > <cfoutput> > objForm.Tier7.setValue("#FORM.tier7#"); > objForm.Tier6.setValue("#FORM.tier6#"); > objForm.Tier5.setValue("#FORM.tier5#"); > objForm.Tier4.setValue("#FORM.tier4#"); > objForm.Tier3.setValue("#FORM.tier3#"); > objForm.Tier2.setValue("#FORM.tier2#"); > objForm.Tier1.setValue("#FORM.tier1#"); > </cfoutput> > } > > > } >//--> ></script> ><!--// [ end ] initialize all default extension libraries //--> > > >http://208.106.220.252/soundings/T8Report.cfm > >Thanks much! > >Will > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280706 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4