Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Controlling the scroll bar



I was wondering if it's possible to control the scroll bar using code?



I have a form with a set of fields that a user fills out. There are more fields than can be seen on a single screen, therefore I have a scroll bar so they can scroll down and up to enter data in the relevant fields.


Once submit form has been pressed,the app returns to the main page. When the user attemps to enter another ticket by navigating back to the "edit screen" page, the scroll bar remains in the same Y position as it was left on the previous ticket. Generally speaking, this is at the bottom of the ticket (as it gets completed from top to bottom). Is there any way that I can force the scrollbar back to the top?


Second scenario - User enters data in the fields. Scrolls to the bottom and once finished, hits the "submit" button. If the user has entered any incorrect data, the process is stopped and the error message shown, however the scroll bar does not return automatically to the error, leaving the user to have to scroll back up to find out where they went wrong.


Hope that makes sense, any help would be appreciated.


Kind regards,


Community Support
Community Support

Hi @JayDee,


So far you cannot control the scroll bar with code, yet you can submit an idea in the PowerApps Ideas forum, so it might be considered for future releases.



Mona Li

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



Did you ever find a solution to this? Very frustrating that when completing multiple forms the user is always sent to the bottom of the form and has to scroll up!


Perhaps a function to reset the form after submit?

Frequent Visitor

Yea I would like to see the function available as well. Been fumbling around with Default in Gallery and would like to be able to return to selected item instead it jumping back to the otp of the list


I do see that there is a SCROLL option in the code but it doesn't have a hint to say what it is for

Not applicable

Hi guys!

I would like to hidden scroll bar(Horizontal and vertical) too.

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,972)