I want to make a button in my diagram that will toggle a layer so someone viewing it can click on a shape to see more information then click it again to hide it and keep the diagram clean. Is it only possible to make a button show or hide it or can I configure it in a way where I can click it repeatedly and have it alternate between showing and hiding the layer?
Use a hotspot to toggle layers
Best answer by Sami H
Hi, thanks for posting in the Lucid Community! To create a button that will toggle between showing and hiding your layers:
- Create the object that you want to act as your “button”. In the example below, I’ve created an office floor plan, and I want clicking on a chair to reveal additional information about who that seat is assigned to.

- Create the corresponding Layers for each object that you’d like to toggle and fill it with the relevant objects and desk. In the example, I’ve made a layer that corresponds to each desk. Within each layer, I’ve created another box with additional information about the person who sits at that desk.

- To toggle layers, right-click the “button” object > More actions > Add action > Layers. In the “toggle” dropdown menu, select the layer that you want to be associated with this action. In the example, I’ve chosen the layer “Desk 1” corresponding with the “Desk 1” object.

- Once you select “Done”, your button is ready to go! See the GIF below for a demonstration of the button in action.

Check out our Help Center for more information on adding an action or link to a shape in Lucidchart. Hope this helps!
____________________________________________________________________________
Create an account in the community
A Lucid or airfocus account is required to interact with the Community, and your participation is subject to the Supplemental Lucid Community Terms. You may not participate in the Community if you are under 18. You will be redirected to the Lucid or airfocus app to log in.
Log in to the community
A Lucid or airfocus account is required to interact with the Community, and your participation is subject to the Supplemental Lucid Community Terms. You may not participate in the Community if you are under 18. You will be redirected to the Lucid or airfocus app to log in.
Log in with Lucid Log in with airfocus
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.