A lightweight and reusable Back to Top component for OutSystems Reactive Web applications. It automatically detects the active scrollable area, displays a floating button after the configured scroll threshold, and smoothly returns users to the top of the page.
ScrollThreshold
Defines the vertical distance, in pixels, the user must scroll before the button appears.
300
0
Open Manage Dependencies in your application:
BackToTop
Open the Layout used by your application screens and drag the BackToTop block onto it.
Place the block at the top level of the Layout so it is available across all screens using that Layout.
Do not place the block inside a Footer, animated container, or container using CSS transform. These containers can affect the button’s fixed positioning.
transform
Set the ScrollThreshold input:
If the button does not appear:
Use only one BackToTop instance per Layout or Screen. The current implementation uses a shared cleanup handler to manage its JavaScript event listeners.