sure. assuming the fields are named appropriately... <cfloop from="1" to="30" index="i"> <cfparam name="form['field' & i]" default="" /> </cfloop>
would set form.field1 - form.field30 to empty default values. but unless they're checkboxes (or radio groups with no buttons checked), they'll still get passed with empty values. an empty <input type="text" name="abc" /> will pass an empty string to the action page for #form.abc#. On 11/16/05, Mike | NZSolutions Ltd <[EMAIL PROTECTED]> wrote: > I have a very long form - 30 or so questions. Not all of the questions > are required and not all are submitted through to the processing page. > > Can I use a loop to set a default value for each form element with out > having to use... > > <cfparam name="FORM.abc" default=""> > <cfparam name="FORM.def" default=""> > > Mike > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224436 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54