Question
cfinput validation question
I am using the following to validate my data :
<cfinput type="text" name="unitValue#gfmPartNumberID#" value="#qryView.unitValue#" required="Yes" validate="float" message="Unit Value must be entered and must be numeric.">
<input type="hidden" name="gfmPartNumberID" value="#qryView.gfmPartNumberID#">
If I use validate=integer, it will not take decimals. If I use validate=float, it will take decimal input such as 19.99 but when I display, the outptu is 19.00 only. Can cfinput validate decimal inputs ?
If not, can I use javascript to validate if my field name is unitValue#gfmPartNumberID# ? I am using this to distinguish between different records.
Thanks
<cfinput type="text" name="unitValue#gfmPartNumberID#" value="#qryView.unitValue#" required="Yes" validate="float" message="Unit Value must be entered and must be numeric.">
<input type="hidden" name="gfmPartNumberID" value="#qryView.gfmPartNumberID#">
If I use validate=integer, it will not take decimals. If I use validate=float, it will take decimal input such as 19.99 but when I display, the outptu is 19.00 only. Can cfinput validate decimal inputs ?
If not, can I use javascript to validate if my field name is unitValue#gfmPartNumberID# ? I am using this to distinguish between different records.
Thanks
