Love you too Barney :)


  _____  

From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 8:06 PM
To: CF-Talk
Subject: RE: Repopulating Checkboxes

And in my glee of finding the CF error, I missed the logic error.
listContains() searches for a list item that contains the string, not a list
item that is the string.

listContains("jazz/blues,jazz", "jazz") = 1
listFind("jazz/blues,jazz", "jazz") = 2

Cheers,
barneyb

> -----Original Message-----
> From: Sandy Clark [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 4:52 PM
> To: CF-Talk
> Subject: RE: Repopulating Checkboxes
>
> <input type="checkbox" <cfif listcontains(form.musictype,'Jazz')>
> checked="checked" />  (Note this is XHTML format).
>
>
>   _____  
>
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 7:45 PM
> To: CF-Talk
> Subject: Repopulating Checkboxes
>
>
> I've got a list of items a user can choose using a series of
> checkboxes, one
> for each choice.  I'm recording all their choices in a single comma
> delimited field.  They click 4 boxes, it ends up as, for example,
> "Jazz,Blues,Rock,Bluegrass" in a field of the database.  
>
> I can get the data in just fine, I just can't seem to get it
> back out.  How
> can I repopulate the checkboxes with the data from the
> delimited list? I
> want a user to be able to edit their choices and see their
> previous choices
> already checked.  
>
> Thanks in advance for any help.
> Les
>   _____  
>
>
>
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to