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

  1. Customize the JavaScript code of the help center theme
  2. 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>');
    }
  3. 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>');
  4. 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.Lake_png__1882_408_.png
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.

Powered by Zendesk