Zendesk hires Lotus Themes for their help center customization. View case studies

Improved ticket form selector

If you have more than one ticket form on your HelpCenter, by default, Zendesk shows the different forms as a dropdown.

At Lotus Themes, we offer an elegant and user-friendly way to show these forms: as tiles.
Now your customers will see all available forms in a convenient and modern way. Additionally, you can add an icon to each ticket form tile so your Submit a Request page will look even better.

 

  1. Unpack the downloaded zip file. There will be the following files:

    • lotus-icons.js
    • tickets-forms.js
    • Readme.txt
  2. In Guide, click on the Customize design icon in the sidebar. The Theming center page opens.

  3. Click the theme you want to edit to open it.

  4. Click the Edit code button.

  5. In the Assets section, click Add asset, then browse to select your files.

    Select all *.js files from unpacked zip.  The files are added to your list of asset files.

  6. In your theme code configuration page under the templates directory, click the document_head.hbs file.

  7. In the document_head.hbs file, paste the following snippet:
    <script src="{{asset 'tickets-forms.js'}}"></script>
    
    <script>
    <!--  Hide default forms dropdown on the form selection page -->
    
      window.addEventListener('load', () => {
        const defaultForm = document.querySelector('.lt-new-request-form--form');
        const urlParts = window.location.href.split('/');
        const isFormSubmitted = urlParts[urlParts.length - 1]  === 'requests';
        const hasTicketFormId = window.location.href.indexOf('?ticket_form_id') > -1;
    
        if (defaultForm && (hasTicketFormId || isFormSubmitted)) {
          defaultForm.classList.remove('is-hidden');
        }
      })
    
    </script>
    
  8. In your theme code configuration page, click the style.css file. Paste the following code snippet to the bottom of the file:
  9. .lt-block-list-item__icon-form {
      margin-bottom: 16px;
    }
  10. In your theme code configuration page under the templates directory, click the new_request_page.hbs file.

  11. In the new_request_page.hbs file, replace the existing code:
    <div class="lt-new-request-form">{{request_form wysiwyg=true}}</div>
    with the following snippet:
    <div class="lt-new-request-form" x-data="Theme.TicketForms()" x-init="getTicketForms()">
     <ul class="lt-block-list lt-list-unstyled lt-row lt-gy-5 lt-row-cols-md-3 lt-mb-0">
       <template x-for="(form, index) in forms" :key="index">
         <li class="lt-block-list-item">
           <a class="lt-block-list-item__link" x-text="form.name" :href="form.url"></a>
           <p class="form-id is-hidden" x-text="form.value"></p>
         </li>
       </template>
     </ul>
     <div class="is-hidden lt-new-request-form lt-new-request-form--form lt-pt-6">
       {{request_form wysiwyg=true}}
     </div>
    </div>
  12. Click Publish.

If you want to change the icons, please check our Changing category, section, ticket form, topic icons article.

We use cookies to provide you with a better service and for promotional purposes. By continuing to use this site you consent to our use of cookies as described in our Privacy & Cookie Policy .
Thank you!

We’ll get back to you within 24 hours.

In the meantime, you may look at the examples of Zendesk help centers we customized.

Bonus: We’ve emailed you “Zendesk Help Center Best Practices from CX Leaders”

Get a Personalized Solution for Your Help Center

Answer 7 questions and get an exact quote. It will take 2-3 minutes, and you'll get a custom help center solution that solves your business problems.

Bonus: Get a compilation of Help Center Best Practices from CX Leaders

What is your Help Center URL, if you have one?

Where can we find your website? *

Add a link to your mockup if you have it.

What problems do you want to solve with the help center?

The better you describe your current situation, the more personalized solution we’ll offer you.

What is important to you in this help center project?

Please describe what is important to you to make a decision (except the price).

Which of our themes would suit your brand best?

Choose as many themes as you like. You may skip the question if you aren’t sure.

What is your budget range for this project?

The higher the budget is, the more customized your help center can be. Lower budgets allow you to get more standard changes.

Enter your corporate email to get your personalized solution and quote

Email *
Name Phone number (optional)
Please submit recaptcha