• Resolved benjaminlouiedrugfree

    (@benjaminlouiedrugfree)


    I have 2 pop ups that appear on the same page. I want the user to close pop up A and
    only then should pop up B appear. I want to do this through custom JS section in the options page. It must be something with adding code before and after the pop up opens. Can you tell me how to do this? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Dear @benjaminlouiedrugfree ,

    Thanks for your message!

    To achieve the wished results you need to do the following:
    1. Create the first(A) popup and select the ”On load” event for it.
    2. On the last line of the ”Custom JS and CSS ” insert this code: var popupObj = SGPBPopup.createPopupObjById(your_second_popup_id_here);
    popupObj.prepareOpen();
    3. Create the second(B) popup and select the event ”Set by CSS Class” and popup Display Rule ”Everywhere”.
    4. In the given code insert the second popup ID.

    Let us know if that helped.

    Thread Starter benjaminlouiedrugfree

    (@benjaminlouiedrugfree)

    Hi there,

    Your solution worked. Thanks!

    Regards

    Dear @benjaminlouiedrugfree ,

    Thanks a lot for getting back to us.
    Happy to help you.
    You are most welcome.
    Should you need any further assistance, don’t hesitate to open a new support thread.

    pavankumarkotla

    (@pavankumarkotla)

    Hi i am using popupmaker plugin i want two popups in my home page,
    i want open second popup when close first one can you help me please..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Open pop up only after closing another’ is closed to new replies.