popup window on form clears data after submit
Posted on 2003-03-31
I have a button on a search filter form that opens a popup window listing several hundred companies for the user to pick from. The popup window populates a few of the fields on the opener window's form before closing. A popup is really necessary here instead of a select field because the user's selection is based on several pieces of information about a company. Error checking is done on the actual submission page, and if errors are encountered, a message is displayed directing the user to go back and correct input.
Here is the problem: if the button for the popup window is clicked before the form is submitted and the back button is used to return to the form for corrections, all previous input has been cleared. (If the popup is not used and back is clicked, the previous input is still there.) CFForm attribute preservedata doesn't work. Anyone know a way to keep the data on the form if a popup is used?