Form is scrolling web page down on page load
Original Post by Cee (Imported from Ardevia Forum)
I have a form that's on a public site and is near the bottom of the page. When the form loads, the page scrolls down to the form because the first field gains focus. Is there an easy way to override with Rich forms? How would you recommend fixing this?
-
Original Post by Vitaliy Zadorozhnyy (Imported from Ardevia Forum)
Hi Cee,
yes it is possible but with just a bit of workaround:Try put the following code enabled or visible expression for one of fields on which there is no expressions logic, just select 'Function code' instead of 'Assignment' expression type:
Code:
Ardevia.Helpers.FieldFocusHelper.SetFocusOnTopMostField =function(){}; return true;Let us know if this helped to resolve the scrolling issue.
0 -
Original Post by Cee (Imported from Ardevia Forum)
This worked perfectly, thank you!
0
Please sign in to leave a comment.

Comments
2 comments