Tracking Ticket Origination from Help Center Follow

Comments

7 comments

  • Avatar
    Brian Noble

    This is working great for us except in the case when the form submission is rejected - in our case due to a required field not getting filled out upon submission. The resulting form, with the error language advising the fields that need to be filled out, displays the hidden fields which confuses the user. Any way to ensure the resulting error form also hides the fields?

  • Avatar
    Rebecca

    Hi Brian - 

    I see what you mean here! It looks like this code is set to hide the custom field only on the following window location:  

    if (window.location.href.indexOf('requests/new') > -1){
    //The next two lines are to hide the custom fields from the end-user in the form
    $("div.request_custom_fields_CUSTOMDROPDOWNFIELDID").hide();
    $('.request_custom_fields_CUSTOMTEXTFIELDID').hide();

    However when a request fails the url changes to /hc/{locale}/requests as a result, you would need to add another if statement to  the Javascript to hide the custom field on /hc/{locale}/request to account for failed requests. 

    Hope this helps! 

  • Avatar
    Brian Noble

    Rebecca,

    Thanks for this. I'll give it a try.

    Cheers.

  • Avatar
    Shawn Taikratoke

    Hello All, 

     

     I'm having issues where my dropdowns are showing duplicates, I have attached a screen for reference.  I made sure both ticket reasons, as well as the dynamic content, does not show duplicates. 

     

    Thanks in advance.

  • Avatar
    Rebecca

    Hi Shawn - This issue appears to be specific to your account. As a result, I am going to create a ticket on your behalf and troubleshoot this with you. You should hear back from me soon!

  • Avatar
    Shawn Taikratoke

    Hey, Rebecca 

     

    Thanks for reaching out, I actually fixed the issue. Please feel free to resolve the ticket. 

     

    Thanks again! 

  • Avatar
    Jessie Schutz

    Hey Shawn!

    I'm glad you were able to get this figured out! If you're game to share what the problem was and how you fixed it, I'm sure others would find it helpful. :)

    I also see you're new to the Community, so...welcome!

Please sign in to leave a comment.

Powered by Zendesk