Prereq: Site, tested in Chrome and Edge.
My use case starts in a site as the main user landing point. From here various actions and a pair of reports are presented to the user.
Depending on the user's screen resolution the initial landing page may or may not scroll. Given the user has scrolled down the page, when they click on a task link (from a task report for example) the task opens up within the site framework but is not at the top of the task, instead, the interface retains the previous scrolled to position.
This has been observed where the target form has been constructed in either formLayout or in headerContentLayout constructs.
I cannot find a way to force the vertical page position back to the top of the form.
Can anyone suggest a solution?
Discussion posts and replies are publicly visible
I haven't messed with this recently, but per my best recollection (and also what I believe Harshit was referencing) was the fact that a!formLayout() autofocuses the first input unless you set its "skipAutoFocus" parameter to FALSE. Have you tried doing this yet?
The parameter for setting "skipAutoFocus" is very rarely used in our configurations so in the cases I am examining "formLayout" would be operating under the default of false. Also because the task is assigned to a group it needs to be accepted first so all form fields are initially locked out so it looks like the autofocus is being ignored.
To clarify though, having "skipAutoFocus" defaulting to "FALSE" would mean that such forms are autofocusing the first input field. As long as you're clear on this then I'm not sure what else to suggest - though if you haven't, i'd still suggest doing an A/B comparison to see whether / how much it affects the use case you're mentioning here.
I am in agreement regarding your explanation as once the form is accepted then the first field is indeed the focal point, unfortunately, it does not resolve my use case the forms are opening mid-way through, forcing the user the scroll to the top to accept them. But thank you for your input.
Cool, I wasn't particularly sure either way, so thanks for confirming/clarifying.