Leave Trigger

Content Type: Widget
Categories: Utility,Tracing

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.

Releases

Version: 1.0.2
Framework Version: 8.6.4
Release Notes: 1- Fix Unexpected Behavior
Version: 1.0.1
Framework Version: 8.6.4
Release Notes: Fix unexpected behavior when closing browser window
Version: 1.0.0
Framework Version: 8.6.4
Release Notes: 1.0.0