Product:
CF 7 BugHunt
User:
Anonymous
[
Switch Product
]
CFUG:
None
Add and View Bug Comments at the bottom of the Element.
Title:
_range truncates input values
BugID:
1044
Date Opened:
17-Oct-01
Created By:
Kurt Manninen
Maryland ColdFusion User Group
Type:
Tag
Element/Element:
_range
Severity:
Unexpected Results
Status:
New/Unvalidated
Adobe BugID:
Description of bug:
We recently upgraded from CF 4.5.1 SP2 to CF 5.0. We are now recieving errors regarding server-side validation and forms. Apparently, when we use the reserved suffix "_range" to validate a numerical text field all data to the right of the decimal (and including the decimal) are truncated. Please look at the code below and see for yourself: ------------- TestForm.cfm -------------------------- <form action="TestForm_Action.cfm" method="POST"> <input type="Hidden" name="Version_Num_Float" value="Version Number must be like M.n where M and n are on the range 0-99 (Ex. 2.01)"> <!--- this is the culprit ---> <input type="Hidden" name="Version_Num_Range" value="min=0.0 max=99.99"> Version:<input type="Text" name="Version_Num" value="2" size="2" maxlength="5"> <input type="Submit" name="Update" value="Update Asset"> </form> ------------- TestForm_Action.cfm -------------------------- <cfoutput>#Form.Version_Num#</cfoutput> If you enter "1.8" in the form field and submit the form, you will see "1" instead of "1.8" (notice the float definition, this happens with or without that). Has anyone else come across this problem? The code appears to work fine in production (which is still CF 4.5.1 SP2).
Comments:
--->
A D D Y O U R C O M M E N T S T O T H I S B U G
Please login to add comments to a bug
C O M M E N T S
Comment display is being revamped. We apologize for the delay.