Can we assume that where you have collapseAll() for 1, 2 and 3, that you actually wanted those elements, strips or containers to be collapsed on load?
To do this, simply tick the collapsed on load box in the properties panel for that element, strip or container. You can do the same with the hidden on load option in the properties panel too.
Note that hidden on load will hide the element, however it will still be taking up space on your page. Whereas if you use collapsed on load, then the element will be collapsed and not taking up any space on your page, although note that when it expands that it may push other elements down the page if they are in the way of the expanded element, strip or container etc.
@j4yw4lk , I hope you understand that if (url === “my-specific-url”) is only an example, and you have to replace the variable and the string and to open a block where you call the function you want to execute…
Yes, the functions of collapse are all necessary. I’m only trying to run that function when someone clicks a particular link. The page defaults to hide everything, but with the link I wanted it to default to run that function. Your instructions lost me a bit, sorry.