Control page elements from Lightbox?

I have buttons in a lightbox that I want to update an element in my header. Is this possible?

Using the onClick action from the button and referencing the ID of the element yeilds a “not a valid selector name”

Any ideas?

im trying too…

Hi Ken!

When you use the method close( ) on a Lightbox, apart from closing the window, data is being returned to the page that triggered the opening of the Lightbox in the first place.
On the same principle, whilst openLightbox( ) occurs, data is being sent from the parent-page to the Lightbox that opens.

Please notice that the two methods are connected!
openLightbox( ) sends a promise that is being resolved by the close( ) function (the data returns to the place it was sent from) which means that you have to trigger the opening of the Lightbox via code and not through the settings of the component in the editor.

Hope it helps.
Best of luck!

Doron. :slight_smile:

Hey man…
See that…

Hope it helps…