If you are using cfwindow than the window is on the same page. You should be able to use JS to control the value on the original form. Like:
document.formName.name.value; Check out this demo I did: http://demo.thinksys.com/cf8/cfwindow/addContacts.cfm I think the concept is kind of the same. Click the new company link and a cfwindow opens. After the new company is inserted there is a close button that uses JS to update the company picklist on the original form. It then closes the window. I hope this helps. > The only way I know of doing what you've indicated below is to use a > JavaScript. > > You can reference the "parent" or "opener" window by using the > "opener" keyword: > opener.document.parentForm.pf1.value = document.childForm.cf1.value; > > A good example of how to do this from a JavaScript can be seen here: > http://www.rgagnon.com/jsdetails/js-0066.html > > -------------- Original message ---------------------- > From: "Andy Chen" <[EMAIL PROTECTED]> > > Here's a situation: > > > > Basically there is a form (CFFORM) which there are various fields. > One of the > > field would be a basic CFINPUT text field where an image ID can be > entered. The > > user will be able to click on a button to preview available images > (CFWINDOW). > > Whatever image they select in the Window (via radio button or drop > down), it > > will populate the main form with the value. > > > > I can't figure out how to pass a variable from the Window back to > the parent > > form. To use some of the UI features, the Window will need to have a > CFFORM > > also. I tried binding but it would only work if it is in the same > form (or > > section). Most commands support FORMNAME.FORMFIELD naming to apply a > function > > but is there a WINDOW.FORMNAME.FORMFIELD naming scheme? > > > > I tried looking at the CF 8 Developer Guide and CF 8 CFML Refence > guide for > > pointers but I can't seem to find out what to use. It seem pretty > straight > > forward so I figure I must be missing something obvious... please > help. > > > > Thanks, > > Andy > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285717 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

