tracker issue : CF-3754589

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

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 Issues Fixed doc

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.

    writeOutput('<br>Integer: ');
    cfinput(name="integerValue", validate="integer");
    writeOutput('<br>Float: ');
    cfinput(name="floatValue", validate="float");
    cfinput(type="Submit", name="btnSubmit", value="Submit");

Test with any of "1,000","$1,000","$,1,2,$,2352345,$","0,6","1,2,3,4". All pass validation.

They shouldn't.


----------------------------- 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:



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