Groups | Blog | Home
all groups > coldfusion flash integration > june 2005 >

coldfusion flash integration : Form field manipulation


bal_logicmanager
6/17/2005 12:00:00 AM
Using ColdFusion Flash Form, how can I change the value of a form field, based
on the values of other form fields on a page? I was able to easily change HTML
forms thru javascript, but this seems to be a whole new ballgame.
The ScareCrow
6/20/2005 1:11:52 AM
You will need to supply a bit more detail.

This can be done using binding or actionscript.

bal_logicmanager
6/20/2005 12:36:41 PM
I have a form which displays multiple rows of information. On each row are 3
drop down selections, each with a value of 1-10. When a user selects a
different number I need to calculate a number that is displayed on the screen
for that row.
The ScareCrow
6/20/2005 11:22:05 PM
I hope I understand this correctly
You want to display a number that is a calculation which includes the select
list

So, lets assume the calculate is "selectListValue" multipled by 10

You could do this

<cfform blah.............>
<cfformitem type="text" bind="{mySelect.selectedItem.data * 10}">
<cfselect name="mySelect">
blah blah...
</cfselect>
</cfform>

Or instead of using the bind attribute you could

<cfsavecontent variable="doCalc">
myTextField.text = mySelect.selectedItem.data * 10;
</cfsavecontent>
<cfform blah.............>
<cfinput name="myTextField">
<cfselect name="mySelect" onchange="#doCalc#">
blah blah...
</cfselect>
</cfform>


Ken
bal_logicmanager
6/21/2005 12:46:35 PM
AddThis Social Bookmark Button