bev
04-20-2005, 05:42 AM
Hi,
I have a search form which has a number of fields hidden when the form is first opened - this is done on onload. These fields then hide and show based on which radio button the user checks on the form.
After running the search, users need to be able to use the browser's back button to return to the form and amend the values they entered, ie. to revise their original search. The fields which are usually all hidden on onload, need to display if the user had entered a value in one of these fields before running the search.
In onload, I have tried to check which radio button is checked and then to show the corresponding field. However, the form's history, indicating which radio button was checked, doesn't appear to be loaded into the form until after the onload event has run. This means fields are being hidden, with values in them from the original search, even if the appropriate radio button is checked.
Is there some way to load the form's history after the onload event has run?
Many thanks, Bev
I have a search form which has a number of fields hidden when the form is first opened - this is done on onload. These fields then hide and show based on which radio button the user checks on the form.
After running the search, users need to be able to use the browser's back button to return to the form and amend the values they entered, ie. to revise their original search. The fields which are usually all hidden on onload, need to display if the user had entered a value in one of these fields before running the search.
In onload, I have tried to check which radio button is checked and then to show the corresponding field. However, the form's history, indicating which radio button was checked, doesn't appear to be loaded into the form until after the onload event has run. This means fields are being hidden, with values in them from the original search, even if the appropriate radio button is checked.
Is there some way to load the form's history after the onload event has run?
Many thanks, Bev