Javascript to display a guide only for certain time of day?

Comments

1 comment

  • Avatar
    Angela Holly

    Although you could schedule a start and expiration date/time for the guide, I could understand not wanting to do this continuously because you would have to set a new start and expiration date every day. 

    If your application can detect the time of day and make the decision on whether or not to display the guide you can programmatically have Pendo display a guide. 

    pendo.showGuideById(id) to display a specific guide. 
    Keep in mind that 'id' would be replaced with the specific guide ID
    (https://developers.pendo.io/docs/?bash#guides-and-guide-center)

    If the user doesn't dismiss the guide on their own, you can use pendo.onGuideDismissed() to dismiss the currently displayed guide (https://developers.pendo.io/docs/?bash#onguidedismissed)

    1
    Comment actions Permalink

Please sign in to leave a comment.