Help Center JavaScript cookbook (Guide Professional) Follow

Comments

10 comments

  • Hello,

    Is possible add more than one field for attachments and uploads ?

  • Avatar
    Madison Davis

    Hi Luiz! Great question. As the attachment field exists, users can upload more than one file - if that doesn't suit your need, could you outline what you're looking for instead?

  • Avatar
    99

    Hi Madison,

    Thank you! 

    I understand that is possible upload more than one file at the same field. However , I need to know if is possible "double" the attachment field . That is, one field for each file.

     

  • Avatar
    Laura Berkobin

    This is great - thank you. Love the cookbook concept!

    I have a few questions...

    1. How can I customize the header (or not have one) for a specific ticket form? 

    2. How can I change the labels on a specific ticket form? For example, "Attachments" on one ticket form would be, "Please attach a copy of your receipt" but on another ticket form, "Please attach a screenshot of the error" 

  • Avatar
    Jonny

    Hey Laura,

    Thanks for your questions :) 

    If you'd like to want to customize the request form - you will want to grab this (see code below) from your "new request page" section:

    <div class="form">
    {{request_form}}
    </div>

    From there, you can certainly build it out all from scratch in the place of the {{request_form}} placeholder - that way you can really customize what's there if you'd like. You can do that or use JavaScript in the Help Center to change what the placeholder renders. I can understand if none of these options are ideal, but building out your custom form is really the best option

    More information on that can be found in the link below:

    https://support.zendesk.com/hc/en-us/articles/203660576-Creating-a-Custom-HTML-Form-for-Ticket-Submission

    Hope that helps!

     

     

  • Avatar
    Anil Kumar

    Hello all,

    I wanted to show a modal(pop-up) on change of a dropdown field. So is there any method in zendesk to do this.

    As far I know that ZD is not using "Selectbox" for this so I'm unable to use jQuery's onChange function.

    So I think ZD may have any function for this.

     

    Thanks-

     

     

  • Avatar
    Kim Graf

    I'd like to change the "Submit a request" text to something else, probably "I need help" on all my HC pages. I found the article on how to do it on one page with pointers to jquery etc. But since I'm not a hard-core coder (just learning), I need a tad more guidance. 

    I was able to change the "Popular articles" text w/ JS thanks to another post. 

    I'd love any guidance. Thanks!

  • Avatar
    Zain Zohaib (Edited )

    Regarding, "Hide the Community based on the selected language", JQuery is not working on iOS devices, especially iOS9+. Any workarounds?

    Update: nevermind, it was another function messing up the code.

  • Avatar
    David

    Is there a way to have an element appear when one language is selected but not for another?

    For example - I've added a floating mailto link img for each page. But I want this to link to one address for English, and another address for other languages.

    So I need a different element defined for other languages. I want to have one appear when English is selected, but another appear when another language is selected.

    How is this possible?

  • Avatar
    Dan Ross

    Hi Charles,

    Is there a list or where we can see what the different sections are called?

    eg

    #request_subject

    #request_description

    #Some_other_attribute?

     

    Also, does dynamic content render in JS? Trying to add a dynamic header to a field, but running into difficulty.

Please sign in to leave a comment.

Powered by Zendesk