Oh, and to address the original post's concern, yes, that method works in 
assignment as well... either of these two are valid:

var AC = document.CFForm_1["cellA_"+ct].value
document.CFForm_1["cellA_"+ct].value = AC;

And, since the key value is dynamically created using whatever formula, you 
could even use form values (or even dynamically addressed form values) as part 
of the field name:


document.CFForm_1["cell"+document.CFForm_1.phonetype.value+"_"+ct].value = 
cellphone;
document.CFForm_1["cell"+document.CFForm_1["phonetype_"+ct].value+"_"+ct].value 
= cellphone;

of course, if you get crazy with the document.CFForm_1 assignments, it pays to 
do:

var theForm = document.CFForm_1;

first, to make things less hair-pullingly confusing. :)

--
Pat

> I need to populate the value of a dynamically generated form field 
> name.  But wrapping in an eval() does not work (at least the way I'm 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:3532
Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33

Reply via email to