How can I trigger the display of a light box by javascript?
We created a light-box via the regular method (lightbox button in the builder), and made the button itself hidden for both mobile and desktop views.
We’d like this to display only based on URL parameters.
GOAL:
If “first_name” and “email” exist as URL parameters, trigger the lightbox immediately on page load
(or sooner ;P)
I suspect that the lightbox Button is typically triggered by Javascript, so I imagine that’d be a good place to start.
But, alas, I don’t know where to look …where to find it.
Of course, ANY alternate suggestions are also welcome 🙂
I’d appreciate as much help as I could get!
As a side note, I need to ensure that the name and email values are available to the lightbox because we need to use those values for the thank-you/confirmation message.