>
>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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280705
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4