jeremy, most of our application is based on forms that are generated from a database. all of the fields are able to have a default value.
For check boxes, radio groups and selects i pass a list as the default value, loop over it to get the options. Ricardo. On 6/8/05, Jeremy <[EMAIL PROTECTED]> wrote: > Hi guys and gals, > > I'm about to attempt building a dynamic form based from a database. I want > to make it as simple as possible for both user and my brain. Has anyone > done such a thing. My issue so far is being radio boxes and check boxes. > > If anyone can point me in the right direction that would be nice. Below is > what I have so far. I also played around with Flash vs. XML v-cool. > > > <cfform name="form" method="POST" format="FLASH" height="400" width="400"> > <cfformgroup type="accordion"> > <cfformitem type="HTML">Please enter your > </cfformitem> > <cfoutput query="GetInfo"> > <cfif #FormRequired# > IS 1> > <cfset RValue > = "Yes"> > <cfelse> > <cfset RValue > = "No"> > </cfif> > <cfif #formtype# IS > 'CheckBox'> > <cfformitem > type="HTML">#Question#</cfformitem></cfif> > <cfinput > type="#formtype#" name="#formname#" value="#formvalue#" label="#FormLabel#" > required="#RValue#" message="Please Check #FormLabel#"> > </cfoutput> > <cfinput type="Submit" > value="Submit" name="Submit"> > </cfformgroup> > </cfform> > > jeremy > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
