Can you send a larger chunk of the code?
I cant tell if this code is in a loop or not.
Also the value getMemberEmailGroupsRet.GroupID
I am assuming this is from a query? In any case, something above this is
probably the cause of your problem. Best guess, the GroupID is not getting
incremented,
I'm not quite sure what your code is doing, but when I do what you appear to be
doing, I'm always comparing the current value is found in a list...then I chek
the box (as multiple checkboxes with the same name have their values passed as
a
list).
So something like (assuming outputting
cfloop from=1 to=#ArrayLen(EmailListArray)# index=x
cfoutput
td width=20
input type=checkbox name=emailgroup
value=#EmailListArray[x][1]# cfif EmailListArray[x][1] IS
getMemberEmailGroupsRet.GroupID Checked/cfif
/td
td
What is x? Are you incrementing it? Perhaps that needs to be
currentrow?
Are you looping over a query? Otherwise getMemberEmailGroupsRet.GroupID
will always return the value for the first record in the result set?
~Brad
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
In case anyone is wondering, regarding the checkbox issue, I am querying two
tables.
tblEmailGroups and tblEmailGroupNames
tblEmailGroupNames has the names and ID of all of the email groups that a
user can check to subscribe to.
tblEmailGroups contains the GroupID of the email group and the
getMemberEmailGroupsRet.GroupID will only return the first record. Is
that your intention? If not try listFind()
On 1/31/07, Bruce Sorge [EMAIL PROTECTED] wrote:
In case anyone is wondering, regarding the checkbox issue, I am querying two
tables.
tblEmailGroups and tblEmailGroupNames
are checking each subscribed group against each
available group.
~Brad
-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 3:06 PM
To: CF-Talk
Subject: Re: Check Boxes not checked
cfloop from=1 to=#ArrayLen(EmailListArray)# index=x
cfoutput
Thanks to everyone who helped out on this one. I got it to work like this: I
used Bryan's example and it worked fine.
input type=checkbox name=emailgroup value=#EmailListArray[x][1]#
cfif ListFind(EmailListArray[x][1],
getMemberEmailGroupsRet.GroupID) Checked/cfif
Sweet.glad it helped ;-)
Cheers
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
Notice:
This message, including any
9 matches
Mail list logo