Restrict the display of topics.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 08:22 PM
I want to control which Topics are displayed per portal.
I have a context variable called liveagent_portal that I think I can use, but I don't know how to do it.
If anyone has any insight, please let me know.
1 REPLY 1
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2024 09:14 PM
Hi @Yudai Yamamoto ,
- Navigate to the Designer > Open the topic that needs to be restricted.
- Open the Propertied tab as shown below and select the script in the condition field
- As shown in the below image , write the piece of code that checks for vaContext.portal value as per your needs.
-
- I am attaching the piece of code thats been used in this example for reference.
-
(function execute() { // consider using vaContext.liveagent_portal as well if(vaContext.portal == 'sp'){ return true; }else{ return false; } })()