Help Limiting Content Based on User Segment

Répondu

4 Commentaires

  • Trapta
    Actions pour les commentaires Permalien

    Hi Morgan King,

    You can use the same code replacing HelpCenter.user.tags with HelpCenter.user.organizations and check for the organization instead of tags.

    Currently, there is no way to do this using Zendesk HelpCenter Components so one has to use the JS code in order to achieve something like this.

    Let me know if this solves your issue.

    Thanks

    0
  • Morgan King
    Actions pour les commentaires Permalien

    Thank you, Trapta!! That did it. 

    0
  • Michael Potts
    Actions pour les commentaires Permalien

    Perhaps someone could help on this?  For HelpCenter.user.organizations[0].name, it will only break the js if there is no organization that a user belongs to.  I've tried all sorts of looking for length like the above example and it breaks when a user does not have an organization.  Any help would be appreciated.

    Thanks so much.

    - Michael

    0
  • Brett - Community Manager
    Actions pour les commentaires Permalien

    Hey Michael,

    It looks like you haven't received a response on this post. I'm rather limited on what I can assist with from my end, but I did want to double-check with you to see if you're still running into the same issue.

    If so, any chance you could provide the code you're using so far? This may help other community members get a better understanding so they can assist further.

    Thanks!

    0

Vous devez vous connecter pour laisser un commentaire.

Réalisé par Zendesk