Is this the "expected" behaviour, or a bug (CFMX)?

If NOT required:

<cfinput type="Text" name="MonthlyIncome" message="Monthly Income must be a
valid Number" validate="integer" required="No">

Will simply return an error "Error in MonthlyIncome" (or something like
that...) rather than using the defined message.


If required:

<cfinput type="Text" name="MonthlyIncome" message="Monthly Income must be a
valid Number" validate="integer" required="Yes">

It will use the defined message.


To prevent errors, I need to be sure the user only enters valid numbers into
all such fields, however, all fields are not required.  May have to go with
JavaScript Validation instead...

Thoughts?

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to