Hi, ı need to my button unvisible

i have a button and it is directing to interaction box ( welcome box ). i want to this : after push button you will see interaction box and after you push to close interaction box and back to page i dont want to see button again. is it possible ?
You can see from link more easy …

https://basbilir.wixsite.com/my-site-4

Thank you and good works to everybody.

You can use wixWindow API to open the light box, (that mean don’t set the link of button using Editor).

Flow:

  1. Button is clicked
  2. Button Hide (element.hide())
  3. Open Lightbox (openLightbox())

Yes, based on the result of the closed lightbox.

wixWindow . openLightbox ( ‘WHATEVER’ )
. then ( res => {

  **if**  ( res  ===  'whatever' ) { 

Show/hide

// lightbox

*/
export function button click_click ( event ) {
// This function was added from the Properties & Events panel. To learn more, visit Velo: Working with the Properties & Events Panel | Help Center | Wix.com
// Add your code for this event here:

wixWindow . lightbox . close ( ‘whatever’ );

}

hello, thank you very much. I did not fully understand, is it possible to write a code using the information in this link?

https://basbilir.wixsite.com/my-site-4

thank you very much. i can make lightbox easly. but ı want to hide first button after click second button ( second button on lightbox ) ( first button on page )

can you help from this link if is it possible please ?

https://basbilir.wixsite.com/my-site-4

When the lightbox is closed it will return a result. Check for that result as in the above code and then hide the button accordingly.