Phil,
Not sure if these will help, but maybe try setting ftDefault="0" (or
"0.00"). If that doesn't work, try ftIncludeDecimal="true". And if a
whole integer is what you'd prefer, try ftType="integer".
Regards,
--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.comOn Jul 3, 2009, at 10:25 AM, Phil Kemp wrote:
>
> Greetings,
>
> I have a custom type with a numeric data type as defined below:
>
> <cfproperty ftSeq="412" ftWizardStep="EC" ftFieldSet="EC"
> ftLabel="Estimated
> EC Contribution" default="" hint="Est. EC Contribution"
> name="est_ec_contrib" type="numeric" ftValidation="validate-number" />
>
> Each time I load the editing page for this field, it sets the value to
> "0,00". As you can see, that's a number. However, it's not a number
> according to the validation rule which doesn't take into account
> spaces or
> the comma instead of a full stop (or period for you Americans) as a
> decimal
> separator.
>
> I therefore would like to know two things:
> - How easy would it be to alter the validation script to accept
> spaces and ,
> instead of .
> - and, Why is it every time I load that wizard page it defaults to a
> value
> that won't pass the validation - what can I do to stop this?
>
> Cheers,
> -Phil
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email:
farcry-dev@...
To unsubscribe, email:
farcry-dev+unsubscribe@...
For more options:
http://groups.google.com/group/farcry-dev--------------------------------
Follow us on Twitter:
http://twitter.com/farcry-~----------~----~----~----~------~----~------~--~---