You have some options in this case:
- Use the JavaScript Button https://appstore.home.mendix.com/link/app/27064/
- Use conditional visibility in combination with the JavaScript-Snippet https://appstore.home.mendix.com/link/app/43096/Incentro-Business-Acceleration/JavaScript-Snippet
- vote for call javascript from a nanoflow https://forum.mendix.com/link/ideas/665
cheers! 🌟