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:
window.pendo.BuildingBlocks.BuildingBlockResourceCenter.getResourceCenter().show()
Dismiss the Resource Center:
window.pendo.BuildingBlocks.BuildingBlockResourceCenter.dismissResourceCenter()
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 (services@pendo.io) for scoping. These will require a custom services contract in order to complete.
Comments
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.
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:
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: https://support.pendo.io/hc/en-us/articles/360034163971-Get-help-with-Pendo-from-Technical-Support
Pete Lawrence another option you can try is:
Please sign in to leave a comment.