Can I add a disclaimer to a specific ticket form in Help Center?

Return to top

8 Comments

  • Georg

    Many thanks for this very useful solution! The missing option to add text boxes to online forms is a massive limitation and this is a practicable workaround.  

    However, since we support several languages, I'd need to use it with a dynamic content placeholder. Is this possible? Simply replacing the HTML part of the disclaimer by a placeholder, for instance {{dc.placeholder_name}}, doesn't work.

    [Edit: I solved it by simply making sure to use a different form name for each language and then assigning the corresponding text versions as suggested above.]  

     
    1
  • Karl Löfdahl

    This doesn't work for me. I have added jQuery and placed the script in the script.js tab, after 

    $(document).ready(function() {

    I have replaced the "Insert the name of your form to end users here" with the name of my form.

    Nothing changes.

    0
  • Christopher Kennedy
    Zendesk Developer Advocacy
    Hi Karl,
     
    When you select the form are you seeing any errors in the browser console?
     
    Best, 
    0
  • Diana Iglesias Irvin

    Could someone update this article to reflect the latest Copenhagen theme code? script.js no longer contains this:

    $(document).ready(function() {

    Thanks!

    0
  • Vlad
    Community Moderator

    Hey Diana Iglesias Irvin, this should do the trick:
    2nd step should be like this, add this code at the very end of your JS file:

    $(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>');
    }
    });

     

    Also, please make sure to add at the end of your document head this one (cause the new Copenhagen doesn't have jQuery library by default):

    <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
    0
  • Andy F.

    Is there a way to add a disclaimer or note like this to the form that doesn't involve editing the theme template? We just switched from an old and outdated custom theme to Copenhagen in order to receive automatic updates, but it looks like if we implement something like this we'll become a custom theme again and lose that benefit.

    0
  • Josh
    Zendesk Customer Care
    Hi Andy!
     
    This method is actually needed if you want custom disclaimers for multiple ticket forms. For this, it will really involve custom coding.
    0
  • mfg

    Would there be a character limit to this element? We're currently struggling to incorporate larger texts into forms.

    0

Please sign in to leave a comment.

Powered by Zendesk