How to auto close a Guide Ayush Sharma October 25, 2021 12:28 I want to auto close Pendo Guide. Please share way of doing it. Or Code to do it 2
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).
If you would prefer something action based like clicking outside of a guide to dismiss it, you can use this snippet code:
Hope this helps!
Below Code isn't working. Please check
Howard Lio- Below code isn't working. Please check
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
You should be able to add the following in a code block to dismiss a guide:
This will dismiss the guide after 3 seconds.
I cannot get either of these options to work. I configured the guide such that:
Is this right?
The example from Da-Me Kim worked for me.
How I do that, where can I put this code?
I want to auto dismiss a step but without a timeout function. I want it to timeout immediately (it's related to a poll I have set on a previous step). I tried setting the setTimeout function to 1ms. This works but the custom guide step still flashes on the screen. Any tips on avoiding the flash and have the guide essentially dismiss before it every displays that step?
Is it possible to put a guide to sleep rather than dismiss it? What would that function look like?
Aaron Levisohn there is out of the box functionality to program a guide button to snooze. If you are looking for something to use in a custom code block you could check out https://github.com/pendo-io/snippets/tree/master/guides/guideFrequency/snoozeRecurrence
Eric Miller Thanks for the suggestion, but that wasn't exactly what I was looking for. I figured out how to do what I needed using the following code. It auto snoozes the guide for a set duration after showing the guide for a set amount of time. The use case is to have a guide that displays for maybe a minute, and if the user doesn't close it, then we assume they are ignoring it for now and we auto snooze it until the next day/week so it's not an ongoing annoyance.
This examples shows it for 10 seconds and snoozed it for 5 seconds.
pendo.onGuideSnoozed("guideSnoozed", step, 5000); //set snooze duration
}, 10000); //set display duration
Please sign in to leave a comment.