OK, it was an issue of value typing. This works:
<cfform format="flash" width="500">
<cfinput name="FieldOne" type="text" label="Field One" width="60" />
<cfinput name="FieldTwo" type="text" label="Field Two" width="60" />
<cfinput name="FieldTotal" type="text" label="Field Total"
bind="{(FieldOne.text * 1) + (FieldTwo.text * 1)}" width="60" />
</cfform>
I don't know ActionScript very well, so there may be a better way of casting
the values. The total field with show 'NaN' if the other fields are empty
or not numeric.
On Fri, Apr 4, 2008 at 1:47 PM, Paul Ihrig <[EMAIL PROTECTED]> wrote:
> i tried that too man..
>
>
> On Fri, Apr 4, 2008 at 1:44 PM, Sonny Savage <[EMAIL PROTECTED]>
> wrote:
> > Just a guess...
> >
> > {ul3R_SSsp.text + ul4_SSsp.text + ul3r4x_SSsp.text + q4_0_SSsp.text}
> >
> >
> >
> > On Fri, Apr 4, 2008 at 1:37 PM, Paul Ihrig <[EMAIL PROTECTED]> wrote:
> >
> > > sweet
> > > <cfinput type="checkbox" name="vm_O" label="Others" />
> > > <cfinput type="text" name="vm_Other" label="Please specify"
> > > visible="{vm_O.selected}"/>
> > >
> > > from:
> http://www.asfusion.com/blog/entry/binding-checkboxes-in-flash-forms
> > >
> > > now...
> > > how do i calculate results of text field on the fly?
> > >
> > > <cfinput type="text" name="StainlessSteel_totalsp"
> > >
> > >
> bind="{ul3R_SSsp.text}+{ul4_SSsp.text}{ul3r4x_SSsp.text}+{q4_0_SSsp.text}">
> > > />
> > > that just puts + between returned results..
> > > like 3+2+5+1
> > > not 11
> > >
> > > i have tried ++ '++'
> > >
> > >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:302751
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4