Hide ticket fields in web widget

Answered

8 Comments

  • Devan - Community Manager
    Zendesk Community Team

    Hello Amy Ogborn,

    The link you shared lead to an old EAP that is no longer live, sorry for the confusion. I've gone ahead and updated that post, so it shouldn't cause any more trouble. As for your question, I'll see if our Moderator team can offer a solution. Otherwise, I'll be sure to share this in our Weekly Digest so other members of the community can share their expertise. 

    Best regards. 

    0
  • Amy Ogborn

    Thanks Devan - Community Manager - I look forward to see if anyone can help me out here :) 

    0
  • Alejandro Colon

    Amy Ogborn

    Try this code and see if it helps.

    https://github.com/Ajhad1/Zendesk-Web-Widget-Modifications

    0
  • Amy Ogborn

    Alejandro Colon - Thanks. Unfortunately I can't get it to work.

    I am putting in the script.js file  and changed the below line to reflect the classes in my helpdesk

    #Embed > div > div > div > form > div > div.sc-cpmKsF.fvnioU > div:nth-child(1) { 

    But it isn't hiding the fields. I don't think it's finding the fields to start with.

    Any guidance? Thanks in advance

    0
  • Alejandro Colon

    Amy Ogborn

    Make sure you are putting the code after the initialization of the widget. 

    Note: This code is only run when the widget is opened. 

     

    By default, I commented out all of the individual lines to make sure that the code does not have unintended effects.

    Make sure you uncommented the section you are trying to use. 

     

    The code should be added to the same place you are adding the initialization of the widget. You should not be inputting the file anywhere. 

     

    I updated the documentation at the link to help explain this.

    1
  • Amy Ogborn

    Alejandro Colon 

    Yes, I missed that I had to put it after the widget. Thanks!

    The bit that was breaking it for me is that in your code you have forgotten to close the function. Just in case any one else needs this code :)


    Thank you so much on helping me fix days of torment! Much appreciated.

     

    0
  • Alejandro Colon

    Amy Ogborn

    I will update that right away. 

    Glad the code helped you. 

     

    I was tired of seeing the same requests for the past 5 years and Zendesk not doing anything about it.

    1
  • Alejandro Colon

    Active Feature Request (please vote):

    Feature Request: Hide ticket fields in web widget

    Amy Ogborn

    I just posted a Feature Request for this at the link below. If you would like to see this feature please head over there and show your support. Please make sure to add an upvote and comment even if it is simply a "+1"

    Also, you may consider adding it to your post to get the feature request more visible.

    https://support.zendesk.com/hc/en-us/community/posts/360046753854-Feature-Request-Hide-ticket-fields-in-web-widget

    1

Please sign in to leave a comment.

Powered by Zendesk