Home > Forum > General > Can a menu button be triggered automatically on page load?

Can a menu button be triggered automatically on page load?
0

Hello,

I'm wondering if it's possible to trigger the automation of a menu button every time the user opens a specific page. There is already a HTML field (button behavior) in my form that will do exactly the automation I need, but will be more helpful if this happens automatically instead of waiting for a click from an user.

Thank you very much!

MVP

Hi Joanna,

if you already have an HTML field, you could add a script tag and execute InvokeMenuAction function
https://docs.webcon.com/docs/2025R1/Studio/UxRules_General/JavaScriptEditor/#invoke-menu-action

This will automatically execute the button whenever the HTML field is rendered.

I hope you are not creating and endless loop as only a few actions in the menu button don't trigger saving and reloading the form.

Best regards,
Daniel