最近搜索


没有最近搜索

Alessandro Caldani's Avatar

Alessandro Caldani

已加入2024年9月02日

·

最后活动2024年9月13日

关注

0

关注者

0

活动总数

1

投票

0

订阅

0

活动概览

的最新活动 Alessandro Caldani

Alessandro Caldani 创建了一个帖子,

帖子 Q&A - Users, groups, and organizations

Good evening,

 

i tried to follow the steps described in this article:

 

https://support.zendesk.com/hc/it/articles/4408886229146-Come-posso-nascondere-i-moduli-ticket-in-base-all-organizzazione-di-un-utente?page=1#comment_7939267795610

 

In particular i did that:

 

  1. i created a new module
  2. i created a new organization
  3. i copied this scritp in the bottom part of script.js file of the customer care portal
    
    $(document).ready(function() {
      var formID = 6502769669773; // Change this to the form ID you wish to remove
        var userOrgs = window.HelpCenter.user.organizations;
        var userOrgNames = userOrgs.map(org => org.name);
    
    if (!(userOrgNames.includes("ZENDESK"))) { // Specify the organization name here
    
          // If the user does not belong to the organization specified, remove the form option from the dropdown
          $('#request_issue_type_select option[value="' + formID + '"]').remove();
          $('.nesty-panel').on('DOMNodeInserted', function(e) {
            $(this).children('ul').children().remove('#' + formID);
          });
        }
      });
  4. I changed the formID with the module ID i just created
  5. I changed the userOrgNames with the name of the organization i just created
  6. I published the changed
  7. I tried to login with a final user that is not part of the new organization (but i had the same result with a user that is part of the new organization)
  8. I still see in the combo box list my new module name

There is someone that implemented the same changes with success that can give me some hint?

 

Alessandro Caldani

已于 2024年9月02日 发布 · Alessandro Caldani

0

关注者

3

投票

2

评论