cfinput checkboxes with same name in form with preservedata
I have a form with preservedata="yes" and a bunch of checkboxes with the same name. When you submit the form and it needs to reload because of a validation error or something, all of the checkboxes with the same names are checked, if just one was checked. Not just the ones that were checked.
Seems like a bug but im not sure. Right now the only workaround I can see is to change to a standard input, add a cfif and cfparam
<cfparam name="FORM.test" type="string" default="" />
<input type="checkbox" name="test" id="test1" value="Test1"<cfif ListFindNoCase(FORM.test, "Test1")> checked</cfif>> Testing Checkbox
<input type="checkbox" name="test" id="test2" value="Test2"<cfif ListFindNoCase(FORM.test, "Test2")> checked</cfif>> Testing Checkbox
<input type="checkbox" name="test" id="test3" value="Test3"<cfif ListFindNoCase(FORM.test, "Test3")> checked</cfif>> Testing Checkbox
Any ideas how to fix this so i can use cfinput. Having to change the names to unique names will not work for me. I need in the list format like it give being the same name.
Thanks
