How can I restrict ticket forms based on the customer's language?

Return to top
Have more questions? Submit a request

1 Comments

  • Jeoffrey Favraud

    Hi there, 

    Thanks for this post... It would be really useful. 

    Sadly, it's not working on my side... always have the following issue : 

    Here's the code : 

    25 -$(document).ready(function() { 
    26 -var htmllang = document.documentElement.lang;
    27 -if (htmllang !== "pt-pt"){
    28 - // if not portuguese remove pt form
    29 - $('#request_issue_type_select option[value="360000310358"]').remove();
    30 - $('.nesty-panel').on('DOMNodeInserted', function(e){ $(this).children('ul').children().remove('#360000310358');
    31 - });
    32 - }
    33 - });

    Do you have any idea to solve my issue ? 

    Have a good day. 

    Thanks. 

    0

Please sign in to leave a comment.

Powered by Zendesk