Tech Note: Programmatically launch and dismiss the Resource Center

If you have a scenario where you want to automatically launch and/or dismiss the Resource Center, it is possible to do this programmatically, using the Pendo Agent API. 

Launch the Resource Center:


Dismiss the Resource Center:



Please note this would require dev resources on your side to implement. Additionally, the visitor still needs to be eligible/be in the segment for Resource Center modules and the content within the modules.



Please note: This custom code snippet is intended to extend the capabilities of Pendo products. This snippet is free to use, and as such, there is NO WARRANTY, SLA or SUPPORT for these snippets. Please do not reach out to Pendo Support for help with these snippets, as custom code is outside of the remit of their team and responsibilities.  Any requests to create new snippets, or modify / customize functionality within existing snippets should be forwarded to Pendo Professional Services ( for scoping. These will require a custom services contract in order to complete.



  • This is great, but what if i would like to show a particular RC Module on a specific page only and keep it hidden on all other pages ?

  • Rohit Pandey

    If it's a guide list or onboarding module, you would need to control this at the individual guide level using the page location set for the first step of each guide. If the current URL the user is on does not match the page location for any of the guides in the guide list module, the guide list module will not appear. 

    For any other module, you would have to control this at the module level, specifically via the segment, and it would require some configuration changes by your developers. 

    • When the user goes to a page where the module should not appear, a new visitor metadata field would be set. Something like "module_hidden: true"
    • When the user goes to other pages where the module can appear, the metadata field would be updated to "module_hidden: false"
    • The  module segment would include a rule like "module_hidden = false". 
    • As the user switches between pages where they should see and shouldn't see the module, the metadata will change, and they'll either be eligible to see the module or not. 

    I would also recommend submitting a feature request for the ability to set page location for non-guide related Resource center modules.  

  • Angela Holly is there also an API for the count of new (unread) items that displays in the badge that invokes the resource center?


  • Sanjay are you asking how to modify the appearance of or hide the 'unread' bubble? 

    Or are you asking if the numeric value of the 'unread' bubble can be modified? 

  • I'm getting an error using this script:

    pendo.js:10 Uncaught TypeError: Cannot read properties of undefined (reading 'steps') at Object.q [as dismissResourceCenter] (pendo.js:10:219209) at HTMLAnchorElement.onclick ((index):1:61)
      q @ pendo.js:10
      onclick @ (index):1

    Is this script still valid, or is there an updated version I should use?

  • Pete Lawrence, this still works for me. If you still need help, I'd recommend having our Support team take a closer look:

  • Pete Lawrence another option you can try is:


Please sign in to leave a comment.

Didn't find what you were looking for?

New post