Hello Paul, turns out that ActionScript has a Number() function which does
what you needed.

I've never used flash forms before, so this may seem like a silly question,
but when I display this form the first two fields are empty rather than
having the value of zero.  Why is that?
<cfform format="flash" width="500">
    <cfinput name="FieldOne" type="text" label="Field One" validate="float"
value="0" width="60">
    <cfinput name="FieldTwo" type="text" label="Field Two" validate="float"
value="0" width="60">
    <cfinput name="FieldTotal" type="text" label="Field Total"
enabled="false" bind="{Number(FieldOne.text) + Number(FieldTwo.text)}"
width="60">
</cfform>

On Fri, Apr 4, 2008 at 3:08 PM, Paul Ihrig <[EMAIL PROTECTED]> wrote:

> NM.
> just put in default value to 0
> that fixed it...
> sw33t!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302765
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to