Title:
strictNumberValidation setting not reflected in clientside CFFORM validation
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 05/04/2014
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: PublicBeta /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
See: http://cfmlblog.adamcameron.me/2014/05/coldfusion-11-adobe-goes-some-way-to.html
The docs for this are as follows ("Application variables"):
In ColdFusion 10 and earlier versions, the IsValid function allowed currency symbols at the start and commas inside the number.
Starting from ColdFusion 11, this function evaluates on a more strict basis. Setting this value to false makes the isValid function to behave in the older way. This setting effects cfargument, cfparam ***and cfform tags*** wherever integer & numeric validation is used. Based on this setting, the validation reflects in those tags as well.
cfform(method="post"){
writeOutput('<br>Integer: ');
cfinput(name="integerValue", validate="integer");
writeOutput('<br>Float: ');
cfinput(name="floatValue", validate="float");
writeOutput('<br>');
cfinput(type="Submit", name="btnSubmit", value="Submit");
}
writeDump(var=form);
Test with any of "1,000","$1,000","$,1,2,$,2352345,$","0,6","1,2,3,4". All pass validation.
They shouldn't.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3754589
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: