The Userback Feedback button is a handy way for users to send feedback directly from your website or web application. By default, the button will be displayed at the bottom-right corner of the page, but there may be situations where you want to hide it temporarily, or show it again after it has been hidden.

This can be achieved using the Userback JavaScript API.

Showing the Feedback button

The Feedback button can be shown at any time by calling the show() method. Here is an example of how you can use this method:

<button onclick="Userback.show()">Show Feedback button</button>

This code will create a button that, when clicked, will show the Feedback button. You can place this button anywhere on your web page, such as the header or footer.

Hiding the Feedback button

The Feedback button can also be hidden at any time by calling the hide() method. Here is an example of how you can use this method:

<button onclick="Userback.hide()">Hide Feedback button</button>


This code will create a button that, when clicked, will hide the Feedback button. As with the show() method, you can place this button anywhere on your web page.

Both show() and hide() methods can also be used programmatically with conditions on your webpage like,

if (conditon) { Userback.show(); } else { Userback.hide(); }

The above code will only show the feedback button if the condition returns true, otherwise it will hide the button.

Note: The Feedback button will only be hidden on the current page, and will be visible again if the user navigates to a different page on your website. To completely hide the Feedback button, you can disable it from the Userback Widget settings.

That's it! With these simple steps, you can now show and hide the Userback Feedback button as needed on your website or web application. If you have any questions or need further assistance, please contact the Userback support team.

Did this answer your question?