Request feedback after negative article vote



Data ultimo post: 13 apr 2017

We have found a nice way of handling user feedback on negative votes - here it goes:

1. Add a new text field called "Originated Article" - note its ID (31107517 in my example).

2. Add a new form called "Article Feedback" - note its ID (155127 in my example).

3. Edit your theme, and the Article page HTML section add the following code after the article-vote-controls div (change the form ID, and the text to your liking):

<div class="negative-followup__c">
<p>We're sorry to hear that!</p>
<a href="/hc/en-us/requests/new?ticket_form_id=155127">Please tell us why.</a>
</div>

Add the following corresponding CSS:

/* ---- negative followup ----------- */
.negative-followup__c {
display: none;
border: 1px;
border-color: #ccc;
border-style: solid;
padding: 10px;
margin: 18px 0px;
width: 50%;
text-align: center;
background: #ccc;
}

4. Add the following script to the same Article page tab, right in the beginning:

<script>
$( document ).ready(function() {
$('.article-vote-controls').on('click',function(){
setTimeout(function(){
if ($('.article-vote-controls>a[title="No"]').attr('aria-selected')=='true') {
$('.negative-followup__c').show(500);
} else {
$('.negative-followup__c').hide(150);
}
},600);
});
});
</script>

This will bind the "click" actions on the voting buttons and show/hide the negative-feedback section.

5. Add the following script tag to the New-Requests page, right at the top. change the field ID from step 1:

<script>
$( document ).ready(function() {
$('#request_custom_fields_31107517').val(document.referrer)
$('.request_custom_fields_31107517').hide();
})
</script>

It will populate this field with the URL of the origin article, and hide it from the end user (you can omit the "hide" action so it will be visible to and editable by the user - up to you).

6. Publish all, and you are done.
Your users will see the originated article info on their request page.

 

One user's modifications

Zendesk note: These modifications were submitted by Morgan King.

I actually got it to work by adjusting the reference points. All I changed was the Article page. I wanted to do some different styling.

 

At the top of the Article page I added:

<script language="JavaScript">
function toggletext(cid)
{
if ( document.getElementById(cid).style.display == "none" )
{
document.getElementById(cid).style.display = "block";
}
else
{
document.getElementById(cid).style.display = "none";
};
}
</script>

 

Then for my 'No' vote I put: 

<p style="display:inline-block" onclick="toggletext('mytext')">{{vote 'down' class='article-vote-down' selected_class='article-voted' role='button'}}</p>

 

Then where I wanted the prompt to appear I put:

<div id="mytext" style="display: none;">
<a target="_blank" style="border:0" class="enhancement" href="/hc/en-us/requests/new#feedback"><div style="margin-top:-30px" class="enhancement">I'd Like to Submit Feedback</div></a><br /></div>

 

Also, I opted out of doing the case linking because it also did not seem to be working so I added the field to my support form to prompt people instead.


2

30

30 commenti

Thank you for your feedback here Harper and for creating that feedback post. We appreciate you taking the time to share your thoughts with us!

0


I put in a feature request to gather "unhelpful" vote feedback here: https://support.zendesk.com/hc/en-us/community/posts/6394025289498

Hopefully everyone else here looking for a solution like I was will take a second to go add their vote for this feature to be added natively to Guide. :) 

2


Hi everyone

Does anyone know how I can create a trigger to email notify me when an article is down voted and when an article suggested by Answer Bot is marked not helpful? 

Thank You 

0


Hi all

I thought it might be of interest that we have put together a recipe for how you can prompt for feedback on downvotes using theme customization inspired by this and other great user submitted solutions. Thanks!

I hope it helps and we are as always very keen to hear from you if you think it can be improved.

0


Hi Federica,

The feedback submitted creates a ticket; using this recipe, you're creating custom fields and a new form for users. You will want to add a trigger to route these tickets to the right queue. The address of the feedback would be the same default support email you use.

 

0


Hey! Amazing workaround thanks!! This will help me a lot! 

I have a question : Where the feedback generated with the workaround code for the not useful votes will go? Are thy going to a special que? 

I would like to implement this code but I need to be sure about the address of the feedback because I don't want to mess around with actual ticket system we are using. I guess is possible to customize the tickets using specific tags and redirect them to a specific que but we don't want receive these feedback in the general support que. 

Also, If I used this code it's gonna reflect in all articles we have in our help center right? 

Thank you!

Best, 

 

 

1


This is awesome and wish it was just a built in feature. I do have one little bug. I have to click NO twice before the pop up button shows up. Any idea what could cause this?

1


Hello everyone!

Thank you Tal for this step by step explanation!

I managed to make it work by also changing a little thing in step 4 (I put false instead of true, which seems a little counter-intuitive, anyone would have an idea why I had to do this?)

if ($('.article-vote-controls>a[title="No"]').attr('aria-selected')=='false') {

 

Selena's advice of putting article-votes-controls instead of article-vote-controls was not working for me :s

Thank you!

0


Appreciate the additional information Jeremy :)

Glad you were able to find a workaround!

0


Accedi per aggiungere un commento.

Non hai trovato quello che cerchi?

Nuovo post