Looking for any tips or tricks on getting and setting vertical scroll position in a Power Apps form.
I have a requirement to scroll down a form to a particular section, and cannot find a means to achieve this using the Client API (either formContext or Xrm methods). The purpose is to help form users navigate particularly long form tabs with multiple sections containing subgrids, so that after opening and closing subgrid records rows they return to the vertical position they were at on the form rather than restart from the top of the form each time.
Storing and retrieving the scroll position is possible via DOM manipulation in browser dev tools - but as this is not supported or accessible in JavaScript libraries attached to forms then I am a bit stumped. Ultimately, I would like to get/set the value of document.querySelector('div.pa-v.webkitScroll.flexbox').scrollTop using sessionStorage, and I cannot find an alternative way of doing this using Dataverse tooling.
Any ideas? Unfortunately I am unable to reduce the height of the forms by introducing more tabs because the form layout requirements are very specific.

Report
All responses (
Answers (