Not included in your plan? Want to learn more about the benefits? Leave us a message! If you're viewing this on our Help Center, click the Support bubble in the lower-right of this page.
Basic Implementation
To begin, make sure you've already placed the widget code on your site by following the setup instructions found here: Setup Instructions.
Next, you'll simply need to add the data-uv-trigger HTML attribute to your element. For Example:<a href="https://back-up-url-goes-here.com" data-uv-trigger>Feedback</a>
Alternatively you can use a JS approach:
UserVoice.push(['addTrigger', '#custom-trigger-element', {
mode: 'post_idea'
}]);
Additional Setup Options
The default setup listed above will cause the link to open the widget mode despite the configurations you chose when you created the widget initially. To choose which widget mode is used when the user clicks on the link, add the following to the HTML attribute:
data-uv-trigger="post_idea"
This means you can swap it out what is between the quotation marks to these options:
- post_idea
- satisfaction
For example:<a href="mailto:example@example.com" data-uv-trigger="post_idea">What should we build next?</a>
Or<a href="mailto:example@example.com" data-uv-trigger="satisfaction">How are we doing?</a>