This depends on the fact that you know what form fields you need when you
get the page.
Basically you need the formfield names that you need in a comma delimited
list.
Example:
You know you need Field1,Field3,Field4,Field5 textboxes.
Then as you creates you textarea's just check to see if the fieldname exists
in your list using the listContainNoCase() Function.
Lets say that your list of fieldnames is names fieldlist.
<cfif listContainsNoCase(fieldlist,Field1)>
<textarea cols="70" rows="5" name="field1">
<textarea>
</cfif>
...and so on
jon
----- Original Message -----
From: "Robert Segal" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, November 17, 2000 3:59 PM
Subject: RE: Creating text boxes on the fly
> If you know how many text boxes you need, perhaps they come from a query,
do
> something like this:
>
> <cfouput query="whatever">
> <input type="text" name="text#whatever.id#">
> </cfoutput>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 17, 2000 3:03 PM
> To: CF-Talk
> Subject: Creating text boxes on the fly
>
>
> I'm not sure how to phrase this but here goes:
> I have a form that requires lots and lots of text boxes, all of the text
> boxes are not always needed so I would like to create these text boxes on
> the fly.
> Right now all of the text boxes show and the form is sooooo.... long, it
> confuses the user. I am sure that I can send the needed info from a form
> that will contain all the fieldnames and how many boxes are needed, if I
> need 5 text boxes I would need to append the numbers 1 - 5 onto the
> fieldname, and have 5 text boxes created using those 5 fieldnames. If
> someone could point me in the right direction I would be most grateful.
>
> Thanks,
> Linda McElroy
> Web Designer
> Sears Direct Response
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
> http://www.fusionauthority.com/bkinfo.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists