I’m trying to set up an alert that shows up like an overlay, kind of how it would in a regular Figma prototype, but in Figma Sites. Since Sites doesn’t support overlays, I can get something similar working using a reveal interaction.
The tricky part is that I only want the alert to appear when someone gets to this page from a specific button or page, not when they land here directly or from somewhere else. In Figma Design, I could do this by giving the button two interactions (navigate → then open overlay).
I can get it to work by creating two versions of the same page, one with the alert and one without, but that’s not ideal because I’d have to keep both versions updated every time I make changes.
I also tried to get this working through a code layer, but no matter what I do, it doesn’t seem to work. I don’t think the code layer has a way of knowing where the user came from.
Any better way to handle this?