Call action on page load, but with action button hidden

Hi, i have $defaultAction property set on custom page. It is working ok. Default action is triggered on pageLoad. But I would like to hide action button. If I set visible(false) action is not triggered. What is the purpose: When page loads, I show announcement in action modal, but only if user has unread announcement. Please, make a reply if youbdont understand me.
Solution:
ok, fixed it. extraAttributes and display:none;
Jump to solution
1 Reply
Solution
flashman
flashman2w ago
ok, fixed it. extraAttributes and display:none;

Did you find this page helpful?