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.