Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Expand and Collapse of container in Service Portal

kuttti
Kilo Guru

Hi,

I am trying achieve the below functionality of expand and collapse functionality of variables, can anyone please suggest how it is possible through widget.

find_real_file.pngThanks!

5 REPLIES 5

Utpal Dutta1
Mega Guru

Hey there,

 

Please have a look at these community posts. It might help:

 

https://community.servicenow.com/community?id=community_question&sys_id=558a1484db32bf4023f4a345ca96...

 

https://community.servicenow.com/community?id=community_question&sys_id=bb5206afdb9773400be6a345ca96...

 

 

If my answer helps then please mark it Correct and Helpful.

 

 

Thanks and Regards:

Utpal Dutta

Hi Utpal,

The first link you provided is not working for me...any idea for the reason.

https://community.servicenow.com/community?id=community_question&sys_id=558a1484db32bf4023f4a345ca96...

Hi @Utpal Dutta ,

In the first link there is some onload client script but it didn't work if the first variable is multiple choice...can you please guide me ?

 

Thanks!

Snehal Pawar
Tera Expert

Hi,

Please go through the provided links and make some changes in CSS code of your widget.

https://www.w3schools.com/howto/howto_js_collapsible.asp

 

Thanks,

Snehal Pawar.