---
title: "Invoke customer survey on clicking the downvote button"
id: "invoke-customer-survey-on-clicking-the-downvote-button"
project: "ClickHelp Knowledge Base"
url: "https://docs.clickhelp.com/articles/clickhelp-knowledge-base/invoke-customer-survey-on-clicking-the-downvote-button"
updated: 2026-09-11T05:23:32Z
---

# Invoke customer survey on clicking the downvote button

Instead of or in addition to a [feedback link](/articles/clickhelp-knowledge-base/add-feedback-link-to-the-reader-feedback-widget), you can invoke a customer survey for a reader who clicks the downvote button of your [Reader Feedback Widget](https://clickhelp.com/software-documentation-tool/user-manual/the-was-it-helpful-widget.html). You can use any relevant online survey service you like, for example, [Typeform](https://www.typeform.com/) or [JotForm](/articles/clickhelp-knowledge-base/embedding-jotform-forms).

Read how you can add the [Typeform](https://www.typeform.com/) survey below.

##  Preview

![](/resources/Storage/clickhelp-knowledge-base/screenshots/invoke-customer-survey-on-clicking-the-downvote-button/survey-invoke-preview.gif)

##  How to implement

1. Find or create the desired [Typeform feedback survey](https://www.typeform.com/templates/c/surveys/feedback/).
2. Add the JavaScript code provided below to your portal Branding script replacing the dummy survey link with the link to your survey.

##  JavaScript Code


```javascript
function main()
{
  setInvokeSurvey();
}

function setInvokeSurvey()
{
  document.addEventListener('click', function(e) {
    e = e || window.event;
    let elem = e.target || e.srcElement;
    if (elem.classList.contains('fa-thumbs-down'))
      window.open( 'https://qwernertwpy.typeform.com/to/qweTWrTy', 'blank', 'scrollbars=yes, toolbar=no, width=700, height=500' ); //replace the link in this line
  }, false);
}

main();
```
* * *
  
 *The information and examples in this Knowledge Base are presented "as is" and for informational purposes only — we do not provide Technical Support for it. Neither can we guarantee that the examples provided will work as intended in your particular scenario, nor do we provide assistance in customizing these examples to fit your use case.*