Topic: Datepicker value when user hits back
We have a search form that posts to a list page of data. The issue is when a user hits the back button on the browser, we can't seem to obtain the previously inputted date or datetime. We're able to obtain the user's plain inputs, selects, etc. but not data from the datepicker or datetimepicker. Is this expected behavior? Or is there some method of doing this I can't find in the documentation?
Kamila Pieńkowska
staff answered 4 days ago
Our package doesn't provide built-in support for preserving date/datetime values after navigating back. From what we know, this behavior largely depends on the browser, the type of input used, and whether the form was submitted via GET
or POST
.
If retaining date values after back-navigation is essential, we can suggest a workaround, such as storing the values in sessionStorage
.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 9.1.0
- Device: PC
- Browser: Chrome
- OS: Windows 11
- Provided sample code: No
- Provided link: No