I have done this before by having them add the company in a popup window. After the popup saves and right before it closes, call a function in the opener window to reload the options in the drop down. A hidden iframe works nicely here. Refresh the iframe which has a query-built JavaScript loop to rebuild the option in the dropdown which is in its parent.
I think that sounded more complicated than it actually is-- once you get it working it is kind of nice. If you really to pass everything along, you can just keep track of it in hidden fields, or loop over your form collection and built a query string of names and values you can store in a hidden fields and pass back in when they make it full circle back to the original form. Of course, the form will need to be coded properly to repopulate itself. I'd go with the pop up and the iframe trick. ~Brad -----Original Message----- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 12:18 PM To: CF-Talk Subject: Retaining form data after navigating away? I'm sure there is an elegant solution to this, I just don't know what it is. I have a form. Text fields, dropdowns, that sort of thing. One dropdown field has "companies" with a listing of companies. If a company is not in the dropdown, the user needs to add that company to the database, which is a form on a different page. This requires that the user navigates away from the form, but they might have already entered some data in the original form. I don't want to have them retype the info. The approach I am headed towards now is having the "add company" link actually submit the form to an interstitial page that dumps the form data into a session.redirect structure that I created, then redirects the user to the "add company" form. The problem I am having is that the data in the session.redirect structure is being "lost" when the interstitial page redirects to the "add company" form, so all the original form data (and the URL that should be navigated back to) is being lost. Is there a more elegant solution to this problem? Thanks, Pete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229073 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

