I am using very large form like the following functionality.

1. if users chooses " Sex " --> Male then another dropdown will appear and asking for " His Problem and Location"

If sex is "female" then we are gathering some more information. Like that i have 40 fields.

All are working fine. But i want back functionality in AJAX. Users don't able to fill that large form again and again.

Any solution for that,I want to auto fill those choosed options when they click on browsers back button.

Any help is appreciated.