I have a form on my page with a search function, when you do a search it fills the form with the data for that record.
Within the form is another button and textbox used to look up a reference. You click the button and choose a record to place into the textbox.
The problem is that the contents of all the other textboxes are being lost when the data is sent from the search to the page, leaving only the reference box filled.
This is how the data is sent back: The record selected has an ID which is added to a session, then the parent window reloads. When it reloads the page looks for an ID in the search and then fills the screen.