I think the easiest solution for this would be a prescript you run before cfform runs its validation step prior to posting the form. You could parse the form and if the number of blank field exceeds a threshold you define, you could display an alert that tell them many fields have been left blank and all field are required. If they fall below that threshold, you can submit the form and let the cfform warn them of what they have left out.
Kier Simmons Analyst/Programmer [cid:[email protected]]<http://www.giveblood.org/> Phone: 713-791-6619 Toll Free: 1-888-482-5663 Fax: 713-791-6681 www.giveblood.org<http://www.giveblood.org/> ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Ajas Mohammed Sent: Monday, January 26, 2009 4:37 PM To: [email protected] Subject: [houcfug] Re: CFFORM Question One way, would be to add textbox1_required hidden form element for the matching element named textbox1 in your form. This way, CF automatically displays a page saying textbox1 is required and user can use back button to enter information for that field. Other way, would be on form processing page, you could have a validation routine, which shows which fields were not entered by user. Algorithm would be : <cfif not len(textbox1)> <cfset errorMsg = "textbox1 is required"> </cfif> You can go on appending other element names to this string and display later. HTH <Ajas Mohammed /> http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Mon, Jan 26, 2009 at 5:27 PM, Ecung II,Ramon J <[email protected]<mailto:[email protected]>> wrote: Hey, I've got a quick question. I have a form with about 200 questions on it with all of the questions being required. Right now if a user doesn't input any data and just hits submit, an alert box pops up that is too large for the screen. Does anyone have any ideas about how make this more user-friendly? Ramon Ecung, BS, ACHDS, MCP Support Services Analyst - Web Application Developer Division of Cancer Medicine - FC10.2005 713-794-4273 | [email protected]<mailto:[email protected]> | Unit 421 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [email protected] For more options, visit http://groups.google.com/group/houcfug?hl=en -~----------~----~----~----~------~----~------~--~---
<<inline: image001.gif>>
