tracker issue : CF-3754589

select a category, or use search below
(searches all categories and all time range)
Title:

strictNumberValidation setting not reflected in clientside CFFORM validation

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 05/04/2014

Components: CFForm, HTML

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

Listed in the version 11.0.03.292480 Issues Fixed doc
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:

Hi Adam, I've verified this is fixed in CF11 Update 3. All five values are rejected for both integer and float. Tested in both cfform() and <cfform> (just in case there would've been any difference =P). Thanks!, -Aaron
Comment by External U.
12326 | November 06, 2014 10:27:23 PM GMT