Enable the widget
The embeddable widget is available on Pro and Enterprise. Open Portal Settings → Embeddable Widget, enable the widget and add the website domains that will host it to Allowed Domains. Save your settings.
Use your portal name in the code, rather than its full URL. For https://portals.feedbacknexus.com/example, the name is example.
Add the code
Place the script, container and initialisation code on the page in this order:
<script src="https://api.feedbacknexus.com/widget.min.js"></script>
<div id="feedback-widget"></div>
<script>
FeedbackNexus.init({
portal: 'portal-name',
container: '#feedback-widget',
maxItems: 0,
theme: 'auto'
});
</script>
Replace portal-name with your actual name. The container selector must match an element that already exists when init() runs. If your app renders the element later, initialise the widget after that render.
Configuration
| Option | Required | Default | Purpose |
|---|---|---|---|
portal |
Yes | None | The portal name, without a domain or path. |
container |
Yes | None | A CSS selector for the host element. |
maxItems |
No | 0 |
Maximum items displayed; 0 means all. |
theme |
No | auto |
auto, light or dark. |
userName |
No | None | Name used with userEmail by an existing auto-authentication integration. |
userEmail |
No | None | Email used with userName by an existing auto-authentication integration. |
For an ordinary embed, leave the optional identity fields out and use the widget’s sign-in flow. Read the theme guide if your website has a light/dark switch. The automatic value is auto, not system.
Questions, screenshots and page details
The widget uses the portal’s saved Feedback collection settings. It can show category-specific questions, required answers, optional annotated image uploads and reviewable page/browser details. You do not add a second question configuration to init().
Configure the form and check the submission options.
Optional CSS adjustments
The current widget uses classes such as .fn-widget, .fn-feedback-item and .fn-vote-btn. For example:
#feedback-widget .fn-widget {
border-radius: 12px;
}
#feedback-widget .fn-feedback-item {
padding: 16px;
}
Check custom styles in both themes. A fixed light background or dark text colour in your own CSS can override the widget’s theme.
Check the installation
Open the page on an allowed domain and verify that feedback loads. Try a submission, category questions, a vote and any optional screenshot controls you have enabled. Check the browser console if the widget does not load.
If nothing appears, first check the script URL, portal name, container selector, saved widget setting and allowed domains. See common issues.