Hi,
To control the functionality of the back button in a Mendix application, you can use JavaScript code in a snippet.
// Disable the back button
window.history.pushState(null, document.title, location.href);
window.addEventListener('popstate', function(event) {
window.history.pushState(null, document.title, location.href);
});
// Customize the back button behavior
window.addEventListener('popstate', function(event) {
// Add your desired functionality here
// For example, you can redirect to a specific page:
window.location.href = 'path/to/your/page';
});
The above code works for page, if it is a pop up,change the close action on page properties.
Hope it helps!!!