Restrict the display of topics.

Yudai Yamamoto
Mega Guru

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

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;
        }
    
    })()