Title:
Bug 86178:-(Watson Migration Closure)I have a standard form with preservedata="yes" and a bunch of checkboxes with the same name
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Brandon Martella / Brandon Martella (Brand0nM)
Created: 02/03/2011
Components: CFForm, Standard XML
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win All
Vote Count: 2
Problem:
I have a standard 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. 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
Method:
<cfdump var="#FORM#"><cfform method="post" action="test.cfm" preservedata="yes"><cfinput type="checkbox" name="test" value="1"> Test 1<br /><cfinput type="checkbox" name="test" value="2"> Test 2<br /><cfinput type="checkbox" name="test" value="3"> Test 3<br /><cfinput type="checkbox" name="test" value="4"> Test 4<br /><cfinput type="checkbox" name="test" value="5"> Test 5<br /><cfinput type="submit" name="submit" value="Submit"></cfform>
Result:
none
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3043285
External Customer Info:
External Company:
External Customer Name: Brandon Martella
External Customer Email: 076B50EE4B74848C992015A9
External Test Config: 02/03/2011
Attachments:
Comments: