I think you need to reconsider your form design altogether.
I think your HTML page (ie the one with the form) is going to lock up or
simply flake out trying to render 237 checkboxes.
Not necessarily... I programmed a spreadsheet style form interface once that
contained close to 400 form
e way down
the form, and then returning no results?! ;-)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 30, 2000 9:41 AM
To: [EMAIL PROTECTED]
Subject: Re: 237 checkboxes
IMHO, it would be a lot simpler to just do them as select boxes w/
Thanks for everyone's help.
Here is how I finally accomplished it. I used a variant of Sean's example:
CFLOOP INDEX="field_name" LIST="#form.fieldnames#"
cfoutput#evaluate('form.' field_name)#/CFOUTPUT
/CFLOOP
I gave every check box a name (Q1,Q2,Q3...) -I'm only up to 21
I have search form that contains a large amount of yes/no check boxes -237
to be exact. It is to search the results of a survey that has 237 questions.
Only when a checkbox is checked will data be sent from the form. Because of
this I need to check if each variable is present. I can create 237
Optionally, you can name them all the same, assign them different
values...any that are checked will have their values passed as a list. That
way you only have 1 CFPARAM to worry about.
I have search form that contains a large amount of yes/no check boxes -237
to be exact. It is to search the
H.
You could give each checkbox the same name (ex/ yes_no) with incrimental
values (1,2,3,...237). The result is a single variable, form.yes_no, to
define. The plus side is the result is a list you can just search for the
yeses (boxes that were checked). The minus side is the result is a
I was thinking:
Is there a way to create a loop that will run through all the values from
the form - creating a query and output for each one.
If your questions are all numbered sequentially then this is real easy.
Name your checkboxes something like "Question_x" where "x" is the question
On 3/29/00, WBB penned:
Optionally, you can name them all the same, assign them different
values...any that are checked will have their values passed as a list. That
way you only have 1 CFPARAM to worry about.
I have search form that contains a large amount of yes/no check boxes -237
to be
8 matches
Mail list logo