Trigger and data attribute with a button

I need to trigger a pop-up on my a website by adding the attribute: data-reveal-id="apt-CartridgeModal" to a button. I am not sure how to get that to work, and I would appreciate any help.

Can you share your Hype document? Is this part of a library that needs to be included? I don't recognize data-reveal-id.... If you can share more info that would be great.

Archive.zip (2.8 MB) This action triggers a toner cartridge finder pop-up on our website. Unfortunately our developer is not responsible for this page, so I am making it work the best way I know how.

You can add HTML attributes to elements with the Identity inspector:

AWESOME! That worked. Thanks for your help.

1 Like