Anyone get the gotoStepNoElement.js to actually work with a delay?
I'm trying to get one of my tours to skip a step if a specific dialog is not visible.
In the step, I've added the gotoStepNoElement.js code (from https://github.com/pendo-io/snippets/blob/master/guides/goToGuideStep/goToStepNoElement/), but I'm trying to add in a delay.
The code includes this:
/* If you must defer this to guide load time or if the element is not already visible
pendo._.defer(function(){setTimeout(function checkElementAndSkip() {*/
I've uncommented the line, as thus:
/* If you must defer this to guide load time or if the element is not already visible */
pendo._.defer(function(){setTimeout(function checkElementAndSkip() {
But:
1. This causes a JS error
2. I don't see where to add a delay of XXX seconds.
Anyone know what I'm doing wrong?
0
Comments
Rick Sapir The thread in this post might be helpful
https://support.pendo.io/hc/en-us/community/posts/4407545459355-Guide-Skipping-Step-No-Element-Even-though-there-is-an-element
Rick Sapir My team made some changes to the code and it worked. I am attaching that variation of the code below. If this code is added in a step with no UI elements, it starts appearing as a blank step during the delay. To counter that, we just made the background transparent so it is not visible on the users' screens.
Hope this helps!
Hi, I also had trouble with the code as is , we had to // out the line directly below the defer function (essentialy switching them) and THEN we had to add a
later on like in the comment above. Not sure why that wasn't included in the github documentation.
Please sign in to leave a comment.