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.
1 Reply
Solution
ok, fixed it. extraAttributes and display:none;