Is the following a bug in CF5, and if so has a solution/workaround? It
did previously work in 4.5, but now it is acting very strangely. Has
this change in behavior been documented somewhere?

The problem is occuring on pages that use input range validation for
numeric fields. When the user enters a numeric float value, it gets
converted to integer, truncating the answer, and losing data.This does
not happen in 4.5, yet the code is exactly the same.

This is a serious problem to us, as data is getting lost on the
page-reload.

This is the only info I could find related to the problem, but no
solution. 
http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=3&threa
did=323588&highlight_key=y&keyword1=%5Frange


Here is the code

<html>
<head>
<title>Form Submission Test</title>
</head>

<body>

<cfif IsDefined("Form.FormNum")>
<cfoutput>Entered Number: #Form.FormNum#</cfoutput><br><br>
</cfif>

<form action="test3.cfm" method="post" title="Test">
Enter Number: 
<input name="FormNum" type="text" size="20" maxlength="20">
<input type="hidden" name="FormNum_Range" value="min=-9999999999
max=9999999999">
<br>
<input name="Submit" value="Submit" type="submit">
</form>

</body>
</html> 

Thanks,

Chris Bohill.


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to