Add Articles Votes Event
Hello, Guys!
For using this tip please follow below steps.
Click on Guide admin > Click on Customize icon (EYE ICON) on the left side > Click Edit theme > Go to the JS tab > Paste the below code at the bottom of your code.
$(document).ready(function(){
// Add vote up message
$(".article-vote-up").on('click', function() {
$(".article-vote-up").wrap('<div>Thank you!</div>');
});
// Add vote down message
$(".article-vote-down").on('click', function() {
$(".article-vote-down").wrap('<div>Sorry to hear that. Thanks for letting us know.</div>');
});
$(".article-vote-up, .article-vote-down").on('click', function() {
$(".article-vote-up, .article-vote-down, .article-votes-count, .article-votes-question").remove('');
});
});
Click Save & Publish.
You can also add your own text.
Once installed, it will look like this -
If face any issue feel free to message us at info@customersupporttheme.com
Thanks
Support Team
http://customersupporttheme.com
(Experts in Zendesk Themes, Zendesk Help Center, Plugins, Help Center Branding and Customization.)
-
Thanks for sharing this!
-
Is there any way to include a field for specific feedback when they click No? This would be uber useful to giving meaning to the votes. The field could link to a Google sheet even, just somewhere to collect feedback would be amazing.
-
I have more or less the same question as Adelle.
When the user votes NO, we would like to display the list of forms, so they can submit a ticket using one of the contact forms.
-
Hi @Adelle Johns and @Edwin Schukking,
You can look at this tip to find exactly what you are looking for.
Cheers,
Team Diziana
-
Thanks, @Trapta . We'll have a look into the tip!
Edwin
Please sign in to leave a comment.
5 Comments