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.

How to make an announcement collapse and expand on service portal

Mayank Das
Tera Contributor

Hello all...

 

I am currently working on the OOTB Announcement widget in the service portal and I am sending the truncated value of the 'Summary' field from announcement table to the portal. I want a user to be able to expand or collapse the announcement using a link, example: 'Read more' for expanding and 'Read less' for collapsing the announcement. Screenshot below for reference:

 

MayankDas_0-1698987862615.png

 

Being new to portal development, I am stuck with this requirement.

 

Can anyone please guide me as to how do I approach this problem?

 

Thanks!

1 REPLY 1

Utpal Dutta
Tera Guru
Tera Guru

Hi Mayank,

I found a community article which says that you need to modify client controller of announcement widget in order to make it expandable.

Please have a look into this article. If it is helpful then please mark my answer Helpful or Correct!

 

Thanks,

Utpal