The widget

Add a Feedback button to your website or web app with one script tag: top ideas, what's new, and a link to share an idea.

The widget puts a Feedback button on your own website or web app. It opens a panel with your board’s top ideas and latest changelog entries, so users see what is planned without leaving your app. It is part of every plan.

Add it

Paste this before </body>, with your board’s address:

<script src="https://acme-notes.humboard.app/static/widget.js" defer></script>

The admin shows the tag with your address filled in, under Settings, Widget for your site or app.

What the panel shows

  • Top ideas: the 5 open ideas with the most votes, with their status and votes.
  • What’s new: the 3 newest changelog entries. The tab appears once you have published one.
  • Share an idea, which opens your board’s form in a new tab, where visitors sign in. On Pro, with the board on your own domain, the form opens inside the panel on your site instead; see below.
  • Open board, which opens your board in a new tab. Voting happens on the board itself.

A dot on the button marks a changelog entry the visitor has not seen yet, and the panel then opens on What’s new. The widget remembers this in the browser’s local storage and sets no cookies.

The panel uses your board’s color.

The form inside the panel

When your board uses your own domain on Pro, such as feedback.yourapp.com, Share an idea on yourapp.com and its subdomains opens the board’s form inside the panel. Visitors who are not signed in yet sign in on your board in a new tab and then post from the panel. Elsewhere, the form opens in a new tab.

Turn it off under Settings, Widget for your site or app, for example if other people can publish their own pages under your domain: those pages could then show the board’s form inside them. The rest of your board never opens inside another site’s page unless we set that up with you. On Free, and on Pro while the board is on its humboard.app address, the form always opens in a new tab: sign-in inside the panel only works when your site and the board share a domain.

Options

Add these attributes to the script tag:

AttributeEffect
data-position="left"Puts the button at the bottom left instead of the bottom right.
data-label="Ideas"Changes the button’s text from “Feedback”.
data-launcher="none"Hides the floating button, for when you open the panel from your own.

Open it from your own button

With data-launcher="none", give any element the attribute data-humboard-open, and a click on it opens and closes the panel:

<button data-humboard-open>Ideas and updates</button>

From your own code, call Humboard.open(), Humboard.close() or Humboard.toggle().

Content Security Policy

The widget runs in your page. If your site sends a Content Security Policy, allow your board’s address in script-src and connect-src, and in frame-src when the form opens inside the panel. If the page blocks the frame, the widget says so and opens the form in a new tab.