Allow HTML content in Web Widget | Community
Skip to main content

Allow HTML content in Web Widget

  • November 10, 2020
  • 0 replies
  • 0 views

We use Pendo for inline guides, walkthroughs and tutorials on our site. We'd like to be able to write a help article on a topic and then provide a link to "see it live".

Pendo has a great API, and it's possible to open a walkthrough using javascript or a link, but none of these seem to work via the WebWidget. We've tried the following options:

  1. <button onclick="parent.zE('webWidget', 'close');parent.pendo.showGuideById('...')"> ... </button> ← The WebWidget will show the button text, but it strips out the `onclick` attribute and changes the `button` to a `p`.

  2. <a href="https://example.com?_pendo=..."> ... </a> ← This opens in a new window (even with that option unchecked) and strips everything after the `?`
  3. <a href="javascript:parent.zE('webWidget', 'close');parent.pendo.showGuideById('...')"> ... </a> ← The WebWidget strips everything from the 'href'

At this point, I can not think of a single way to use the WebWidget with our site. Advice appreciated.