The CreatorCon Call for Content is officially open! Get started here.

Query on collapse / expand functionality in portal

Sakeena Fathim1
Tera Expert

Hi Team,

 

Greetings for the Day!!

 

I have a requirement where I need to configure collapse / expand variables on portal view but using containers it’s working on native view. While loading the catalog item on portal level ‘+’ ‘-’ icons are not displayed. Please find the below screenshot for reference.

 

SakeenaFathim1_0-1669966745957.png

 

Note: I have tried using DOM manipulation and toggleVariableConatiner(‘sys_id of the container variable’); but unfornetnly it is not working.

 

Any one came across the same scenario. Please help me out to fulfil my requirement.

 

Thanks in advance.

3 REPLIES 3

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please check the below post for the answer:-

 

https://www.servicenow.com/community/developer-forum/how-to-make-collapse-of-container-in-service-po...

 

Please mark my answer as correct based on Impact.

Sakeena Fathim1
Tera Expert

Hi @Saurav,

 

Greetings!! 

 

Tired this it worked for only one container and it used jquery, DOM manipulation and my client don't want DOM manipulation.

 

Thanks,

You cannot achieve this in Service Portal without DOM manipulation unfortunately. You will have to let your client know that either we have to use DOM manipulation or we cannot do it on Portal as Portal framework is completely different to Native UI.

 

 

Please mark my answer as correct based on Impact.