I am trying to create a nicer menu for my site using Multistate Box. There are 3 buttons in the header that show the hidden Multistate box. This part of the functionality works great. I have everything changing between states perfectly and figured out how to get the right state changed before actually showing the box. The problem I am having is how to get rid of the Multistate box once someone chooses and option by clicking on one of the buttons. If you click on a button it goes to the linked page perfectly except the Multistate box is still showing. I am trying to figure out how to close it and essentially reset back to hidden upon opening a new page or a total page reload. Right now I have it on the master page code so it will show on every page. Do I need to put in a function for every single button to close the box or do I need to put the box on every single page individually? There must be an easier way than adding all of that code. I do not have a database and I am not using repeaters. Most of the articles I see are using a dataset or repeater. Any ideas?
Although your setup is not really clear for me, your problem will surely be, that you are trying to control elements on one of your pages out of the master-page, or vice-versa.
To get this working well, you will need to use → a → “public-JS-file”.
It will make the communication between MASTER-PAGE and your CURRENT-PAGE possible.
But without have taken a closer look onto your setup, i can’t tell you more details.
Everything depends how you did setup your Buttons (on which page?) and where is located your MSB(multi-state-box).
Perhaps some SCREENSHOTS could clarify your setup-situation.