• Resolved Webprom Design

    (@webprom)


    Hi!

    Can’t find in documentation: is it possible to also close popup from trigger that has opened it? Like I want some link/button to open popup on click, and then to close it with the same button.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @webprom – Generally the button would be hidden behind the popup or overlay so not typically would this work. But assuming you had the popup tucked to one side with no overlay or similar it still wouldn’t work just due to the fact triggers were not coded that way initially.

    You would need to add a manual click event to the button using JavaScript and then check is the popup open, if so close it, if not open it. Our API is pretty simple PUM.open(123); opens popup #123, PUM.close(123); does exactly what it sounds like.

    Hope that helps.

    Thread Starter Webprom Design

    (@webprom)

    Thanks, I thought you do have a snippet somewhere… It seems to be pretty common action for the trigger.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to also close popup from trigger that opened it’ is closed to new replies.