How to automatically scroll to a section of page where the user last interacted to on previous session?
0
Hi experts! I have a datagrid-2 of questions and radio buttons for answering. When the user is interrupted during his/her current session, is there a way to automatically scroll to the question or datagrid-2 row that he/she last interacted to? This is a requirement since it would be non-user friendly to scroll back far down again through the page. Thank you, experts!
asked
Ian Lloyd Awid
1 answers
2
What you can do is to save the last interacted row in an entity/relation. Via a dynamic class you can toggle a specific class for that row that was last selected based on that entity/relation. Then, via JavaScript you scroll to that item with that specific class. In all fairness it is a bit of work, but it can be done.