How to display callout above the ticket form for specific user's segments? | Community
Skip to main content

How to display callout above the ticket form for specific user's segments?

  • March 21, 2022
  • 1 reply
  • 0 views

Hello,

in my company we have customers with and without subscription. I'm looking one from those solutions:

1) Showing form only for specific user's segments (tried do this but with no success)

2) Display callout with warning that creating ticket is available only for users with subscription:

Of course technically it's possible to send us the ticket, but specific trigger close tickets. I need something to warn about it users who don't belong to specific segments.

Right now I have: 

{{#if signed_in}}
    <div class="callout callout--danger">
  <h5 class="callout__title"><em class="fas fa-exclamation-triangle">&nbsp;</em>Caution</h5>
  <p>The service is available only for users with subscription</p>
</div

Is this possible to display this 'callout div' only for specific segments or users from organization with specific tags? 

1 reply

Tipene
  • April 7, 2022
Hi Jakub,
 
Thanks for reaching out!
 
Perhaps the article here could be utilized for your use case, with the use of the HelpCenter.user.role property in place of organization:
 
I hope this helps! Let me know if you run in to any issues.
 
Tipene