Form
- Response Groups
-- Responses
Response Types
- Checkbox
- Radio...and so on
Seems easy enough?
<cfoutput query="myform" group="responseGroupID">
#responseGroup#
<cfoutput>
#response#
</cfoutput>
</cfoutput>
eaaaaasy
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jeremy
Sent: Wednesday, June 08, 2005 4:02 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Form Advise.
Nope, and thats wot I'm trying to do.
I have built hundreds of apps but I have never done this. So its kind of a
learning curve. But man I'm having fun doing it. I have been this
challenged in ages...ever since I got married...or when scott kept asking
me out...and I said NO means NO!
J.
> ever built a survey app?
>
> I am guessing it would be very similar. Create a form, create question
> groups and select what sort of group it is
> (select|checkbox|radio|text|textarea) and so on, then add responses into
the
> group. When your dealing with radio buttons, everything is grouped under
> the single question group and are named as such.
>
> Something like that should do it
>
> Steve
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jeremy
> Sent: Wednesday, June 08, 2005 3:43 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Form Advise.
>
>
> Thanks Ricardo,
>
> I was onto something like that as I got your message. Still having issues
> trying to get my head round multiple select boxes etc etc. But I'll work
> it out.
>
> Chad...dood you worry me.
>
> J.
>
> > It isn't that bad. but it depends on how much flexibility you want
> > your forms to have.
> >
> > I can't give you our custom tag. but it goes a little something like :
> >
> > <cfcase value=3D"checkbox">
> > <cfloop list=3D"#attributes.defaultvalue#" index=3D"i">
> > <input name=3D"#attributes.name#" id=3D"#i#"
> value=3D"#i#"><label>#i#</=
> > label>
> > </cfloop>
> > </cfcase>
> >
> > watch your id's. you may want to have a counter in there and
> > manipulate the data or something. or you could end up with a invalid
> > value.
> >
> > but you can put other attributes in there as well. Jon added #jscode#
> > to it aswell so it can save custom javascript eg: "onBlur=3D'doThis();
> > onFocus=3D'doThat();'"
> >
> > HTH
> >
> > Ricardo
> >
> >
> >
> > On 6/8/05, Jeremy <[EMAIL PROTECTED]> wrote:
> > > Hi Ricardo,
> > >=20
> > > Yeah thats what I'm upto at the moment or at least my thoughts are up
to
> > > that level. I have just been playing around with arrays and putting
all
> > > the data into that but i reckon its going to be a pain in the ass.
> > >=20
> > > Interesting on the Checkboxes, and radio stuff. Do you have an example
> of
> > > this you could show me or is is IP encrypted...hehe.
> > >=20
> > > Its funny, everyone who responded off list and on list...are
> > > saying...whoooa...yucky pucky jeremy....
> > >=20
> > > thanks for your help!!
> > >=20
> > > Jeremy
> > >=20
> > > > jeremy,
> > > >
> > > > most of our application is based on forms that are generated from a
> dat=
> > abas=3D
> > > > e.
> > > > 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,
> > > > >=3D20
> > > > > I'm about to attempt building a dynamic form based from a
database.
> I=
> > wan=3D
> > > > t
> > > > > to make it as simple as possible for both user and my brain. Has
> anyo=
> > ne
> > > > > done such a thing. My issue so far is being radio boxes and check
> box=
> > es.
> > > > >=3D20
> > > > > If anyone can point me in the right direction that would be nice.
> Bel=
> > ow i=3D
> > > > s
> > > > > what I have so far. I also played around with Flash vs. XML
v-cool.
> > > > >=3D20
> > > > >=3D20
> > > > > <cfform name=3D3D"form" method=3D3D"POST" format=3D3D"FLASH"
> height=
> > =3D3D"400" wi=3D
> > > > dth=3D3D"400">
> > > > > <cfformgroup type=3D3D"accordion">
> > > > > <cfformitem type=3D3D"HTML">Please enter
> your=
> > </cff=3D
> > > > ormitem>
> > > > > <cfoutput
> query=3D3D"=
> > GetInf=3D
> > > > o">
> > > > > <cfif
> #FormRe=
> > quir=3D
> > > > ed# IS 1>
> > > > >
> <cfse=
> > t RV=3D
> > > > alue =3D3D "Yes">
> > > > > <cfelse>
> > > > >
> <cfse=
> > t RV=3D
> > > > alue =3D3D "No">
> > > > > </cfif>
> > > > > <cfif
> #formty=
> > pe# =3D
> > > > IS 'CheckBox'>
> > > > >
> <cffo=
> > rmit=3D
> > > > em type=3D3D"HTML">#Question#</cfformitem></cfif>
> > > > > <cfinput
> type=
> > =3D3D"=3D
> > > > #formtype#" name=3D3D"#formname#" value=3D3D"#formvalue#"
> label=3D3D"#F=
> > ormLabel#"=3D
> > > > required=3D3D"#RValue#" message=3D3D"Please Check #FormLabel#">
> > > > > </cfoutput>
> > > > > <cfinput
> type=3D3D"Su=
> > bmit" =3D
> > > > value=3D3D"Submit" name=3D3D"Submit">
> > > > > </cfformgroup>
> > > > > </cfform>
> > > > >=3D20
> > > > > jeremy
> > > > >=3D20
> > > > > ---
> > > > > You are currently subscribed to cfaussie as:
> [EMAIL PROTECTED]
> > > > > To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> > n.co=3D
> > > > m.au
> > > > > Aussie Macromedia Developers: http://lists.daemon.com.au/
> > > > >
> > >=20
> > > ---
> > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > > To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> > m.au
> > > 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/
---
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/