"Was this helpful Yes/No" that they have at the bottom of every doc page
Asked by Chris Riggins:

does confluence provide the intrinsic operations necessary to implement the "Was this helpful Yes/No" feature that they have at the bottom of every confluence doc page  
[](https://community.atlassian.com/t5/Confluence-questions/quot-Was-this-helpful-Yes-No-quot-that-they-have-at-the-bottom/qaq-p/282013?attachment-id=6815){#link_118719c400814d}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/47828/1/wth.png){#display_118719c400814d_0}


Answers:
author: AnnWorley
body: Please see <https://confluence.atlassian.com/confkb/how-can-i-add-surveys-to-confluence-pages-345637394.html>

comments: author: Chris Riggins
body: Ann

thanks - looks like they are all server-only features and right now we are cloud based but should we ever get to server based, I will use one of these plugins

-Chris R


author: Antti Hietala
body: Ann, the Knowledge Base Survey Plugin on your list is not supported on Confluence 5.7 or later.

Do you know what plugin provides the simple "Was this helpful?" widget that is at the bottom of many Atlassian pages? Is it available for others to use? I really like it. Is the code public?

wth.png


author: AnnWorley
body: I found out that we built a custom theme for our Knowledge base, and "Was this helpful" is generated with javascript. It is not something we can share as it's neither a macro nor a Scroll Viewport feature. Wish I could help more.


author: AnnWorley
body: Update - it is possible to add a survey question, though not the exact one Atlassian uses in our knowledge base spaces.

Please see <https://community.atlassian.com/t5/Confluence-questions/Search-for-quot-Was-this-review-helpful-quot-Macro-AddOn/qaq-p/582591>


author: Jonathan Appel
body: For those landing here looking for a Confluence Cloud based solution, could also try [https://marketplace.atlassian.com/apps/1231936/page-feedback-for-confluence?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1231936/page-feedback-for-confluence?tab=overview&hosting=cloud)


author: Jens Iwanenko
body: Hi,

for what it's worth 2 years later, I created a small User Macro that kind of works like the Atlassian version. We are not using it right now, because the reporting of the KB Survey macro is a bit messy. You can add an issue collector to the *enc-feedback-ticket* section, which we didn't do because of the messy reporting.

Note that the order in which the additional survey questions are added is important.

```
## Macro title: Feedback for Documentation
## Macro has a body: n
## Body processing: none
## Output: HTML
##
## Developed by: Jens Iwanenko
## Date created: 2018/03/07

## Inserts a simple feedback form utilizing the Knowledgebase Survey plugin.
## @noparams
#set($spaceKey = $space.key)
#set($pageId = $content.getId())
<div id="enc-feedback">
 <span class="enc-question"><strong>War der Inhalt hilfreich?</strong>&nbsp;</span>
 <button class="aui-button enc-feedback-yes" value="Yes" name="${spaceKey}0" id="${spaceKey}0">Ja</button>
 <div class="aui-buttons">
 <button class="aui-button enc-feedback-no aui-button-split-main" aria-controls="enc-feedback-reasons" 
 href="#enc-feedback-reasons" name="${spaceKey}0" id="${spaceKey}0" value="No">Nein</button>
 <button class="aui-button aui-dropdown2-trigger aui-button-split-more" 
 aria-controls="enc-feedback-reasons" href="#enc-feedback-reasons">Details</button>
 </div>
 <span id="enc-feedback-thanks" class="hidden">Danke f?r dein Feedback!&nbsp;</span>
 <span id="enc-feedback-ticket" class="hidden">K?nnen wir etwas verbessern? <a>Erstelle ein Ticket</a></span>
 <aui-dropdown-menu id="enc-feedback-reasons">
 <aui-item-checkbox interactive class="enc-feedback-incomprehensive" name="${spaceKey}1" value="Yes">Unverst?ndlich</aui-item-checkbox>
 <aui-item-checkbox interactive class="enc-feedback-imprecise" name="${spaceKey}2" value="Yes">Ungenau</aui-item-checkbox>
 <aui-item-checkbox interactive class="enc-feedback-irrelevant" name="${spaceKey}3" value="Yes">Irrelevant</aui-item-checkbox>
 </aui-dropdown-menu>
</div>
<style>
/**<![CDATA[**/
 #enc-feedback {
 border-top: 1px dotted #c1c6c8;
 padding-top: 10.0px;
 }
/**]]>**/
</style>
<script>
 $('#enc-feedback .enc-feedback-yes, #enc-feedback .enc-feedback-no').click(function(){
 var trigger = $(this);
 var question = $(this).attr("name");
 var answer = $(this).attr("value");
 var action = "/plugins/kb/ajaxkb/submit.action?pageId=$pageId";
 posting = jQuery.post(action, {
 questionId: question,
 value: answer});
 posting.done(function(data){
 console.log('Finished posting feedback');
 trigger.addClass('aui-button-primary');
 $('#enc-feedback-thanks').removeClass('hidden');
 if(answer == "No"){
 $('#enc-feedback-ticket').removeClass('hidden');
 console.log('Added ticket hint');
 } 
 });
 });
 $('#enc-feedback').insertAfter('#main-content');
</script>
```

May it help anyone who wants to collect feedback. I added this in the custom footer for our documentation space. It adds itself to the bottom of the page above the comment section.

--

Jens


Tags: cloud

confluence-cloud

documentation