Leave Trigger
Overview
this widget is targeting various types of actions (e.g call microflow) on page different event (e.g page reload , page close , moving between pages).
Documentation
LeaveTrigger Widget Documentation
ย
Overview
The Leave Trigger widget allows you to execute specific actions automatically when a user leaves a page in your Mendix application.
The Widget fires up on various browser events this include events like navigation to a different page, close page and refresh page.
The action can be differed from calling a microflow, triggering nanoflows, or other custom behaviors.
The widget is ideal for managing end-of-page events, ensuring your application responds appropriately when a user navigates away from a page.
ย
Key Features
Trigger on Page Leave: Execute any action when a user exits a page (e.g refresh page from the browser , close browser window tab ..etc).
Customizable Actions: Show a new page, call a microflow, execute a nanoflow, or trigger other events.
Seamless Integration: Easily add the widget to any Mendix page and configure the desired exit actions.
No-Code Configuration: Simple setup through the Mendix Studio Pro interface.
ย
Installationย
Download the ๐๐๐๐ฏ๐ ๐๐ซ๐ข๐ ๐ ๐๐ซ widget from the Mendix Marketplace.
Import the widget into your Mendix project.
Drag and drop the widget onto the page where you want to implement leave actions.
ย
Configuration
The widget must be added to a data view that has object with Boolean attribute.
Properties
Execution Flag:
Only when this attribute is True the widget script will execute
Leave Event:
Choose the type of event to trigger upon leaving the page. Options include:
Show Page: Navigate to another page.
Call Microflow: Execute a selected microflow.
Trigger Nanoflow: Execute a selected nanoflow.
Custom Action: Execute custom JavaScript or other logic.
ย
Limitations:
-Some actions (e.g close page , show page ) will NOT work when when closing browser tab window.
-Widget MUST put in ๐๐๐ฌ๐ฉ๐จ๐ง๐ฌ๐ข๐ฏ๐ย ๐ฅ๐๐ฒ๐จ๐ฎ๐ญย to trigger the Leave Event , page pop up modal will NOT trigger the widget leave Event.
ย
Versioning
Current Version: 1.0.2
Mendix Version: Compatible with Mendix 8.6.4 and above.
ย
Support
For any issues, feature requests, or general inquiries, please contact the support team at polaris@support.com.
ย
License
This widget is provided under the MIT License. Please refer to the license file included in the download for full details.