Add a custom disclaimer or note in a ticket form in your help center to add context or important information before users submit a request.
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code.
To add custom disclaimers
- Customize the JavaScript code of the help center theme
- Place the code below anywhere in the script.js tab, as long as it is after
$(document).ready(function() {
var selected = $('#request_issue_type_select option:selected').text(); if (selected == "Insert the name of your form to end users here") {
$('div.request_ticket_form_id').append('<p>Insert whatever disclaimer or note you want here!</p>');
} - If you want to add styling to the disclaimer, add an ID to the element then style the ID in the CSS of your template
$('div.request_ticket_form_id').append('<p id="disclaimer">Enter whatever disclaimer or note you want here!</p>');
- Under style.css, add the styling for your disclaimer. In this example, the disclaimer font is set to red
#disclaimer { color: red; }
Here's how it should like in the help center when a user tries to submit a form.
Note: jQuery is not provided by default. Make sure to import a jQuery library if you want to use jQuery statements in a theme in place of vanilla JavaScript. For more information, see the article: Importing or upgrading jQuery.
For more information, see the article: Customizing your help center theme.