I have a manually placed overlay with a button. Upon click of that button, I want to open a centered overlay and close the original overlay. I can’t figure out how to do this. Currently I’m able to open a new overlay from that button, but the old overlay stays open beneath it.
1 Like
Hi @Don2,
- The first button opens an overlay on click (manual placed).
- In the overlay you have a button to open another overlay. The actions to assign are, first “close overlay” and second “open overlay 2” (centered).
Open the first overlay (manual placed)
Close the overlay and then open the new overlay
Close the overlay to start over
2 Likes
Wow, thank you for this Edwart. I didn’t realize that you can add two actions to the same "On click). This is a huge help!
Yes!!! Thank you! Didn’t realize this either.
The two action feature is available in paid plans only
Just use ‘swap overlay’ as the action on the first overlay’s button: https://help.figma.com/hc/en-us/articles/360039818254-Create-overlays-in-your-prototypes#h_c996af75-4270-4f95-844b-643d9dd1d10f
(With the swap overlay you can’t change the location. So for example going from a tooltip to a sidepanel isn’t possible with swap overlay.)