> I'm still getting the same errors > Here's the code (html generated from CF)
> The size of the form is dictated by a cfoutput query. Oh you don't have a series of "client_id" input elements... that looks like this: <input type="..." name="client_id" value="1" /> <input type="..." name="client_id" value="2" /> <input type="..." name="client_id" value="3" /> That's the syntax that would make "form.client_id[i]" work (although you'd still have to subtract 1 because javascript arrays are zero-based indexes. so... given your structure, you'd want this (var inside the function and not for the argument): function clientRecPop(i) { var frm = document.forms.clientSearch; var frm2 = self.opener.document.forms.newJob; frm2.clientID.value = eval('frm.client_id' + i + '.value'); frm2.coName.value = eval('frm.company' + i + '.value'); //window.close() } I added the frm and frm2 variables to make it easier to read -- plus you had newJob spelled "NewJob" and "newJob" -- one of those will produce an error due to case sensitivity. (and setting them to local variables before populating the other form isn't really necessary, so I removed those just to make it shorter). s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206263 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54