How to auto close a Guide

I want to auto close Pendo Guide.

Please share way of doing it. Or Code to do it 

2

Comments

8 comments
  • Hi Ayush Sharma,

    Thanks for asking your question in the Discussion Community.

    You can try the following as a code block (dismiss a guide in 10 seconds). 

    setTimeout(pendo.onGuideDismissed(), 10000);

    If you would prefer something action based like clicking outside of a guide to dismiss it, you can use this snippet code:

    https://github.com/pendo-io/snippets/tree/master/guides/dismissingGuides/dismissWhenClickOutsideGuide

     

    Hope this helps!

    0
  • Below Code isn't working. Please check

    setTimeout(pendo.onGuideDismissed(), 10000); 



    0
  • Howard Lio- Below code isn't working. Please check

     

    setTimeout(pendo.onGuideDismissed(), 10000); 
    0
  • Hi Ayush Sharma,

    Are you creating a code block with the following syntax? This should be working, but this may be something to check with the ongoing support ticket you have. 

    Another alternative is to try the following snippet if you want users to dismiss the guide when clicking outside the guide: https://github.com/pendo-io/snippets/tree/master/guides/dismissingGuides/dismissWhenClickOutsideGuide

     

    0
  • You should be able to add the following in a code block to dismiss a guide:

    setTimeout(function() {
     pendo.onGuideDismissed()
    }, 3000);

    This will dismiss the guide after 3 seconds.

    1
  • I cannot get either of these options to work. I configured the guide such that:

    • activation is selection of a badge
    • step 1 being the contents of the guide
    • step 2 being the custom code block adding the code close the guide when the user clicks outside the guide from the above git repo to the javascript tab  

    Is this right? 

    0
  • The example from Da-Me Kim worked for me.

    setTimeout(function() {
     pendo.onGuideDismissed()
    }, 3000);
    0
  • How I do that, where can I put this code?

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post