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

How do you set the "Description" field to expandable for a Catalog Item?

Jake McClellan1
Tera Contributor

Hello,

I'm working on a Catalog Item and the ask has been to have a large amount of text at the top of a Catalog Item, however it's rather unsightly so the customer has asked for it to be partially hidden/expandable, with the normal various Catalog Item variables below it as they would usually be.

I was wondering if anyone knows a way to make the description field at the top partially hidden/expandable? (UI policies etc or another method?).

Many thanks

4 REPLIES 4

Harish KM
Kilo Patron
Kilo Patron

SCreenshot will be helpful

Regards
Harish

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you cannot partially hide/expand the description field data.

If the text is large then why not add it in Rich Text Label variable and users can see it directly.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you, and how do I go about making this Rich Text Label variable expandable/collapsable so the user can see it if they expand it but it is not by default filling the screen please?

Hi,

I don't think Rich Text label supports that.

In this case you can go with Variable of type Custom and use Widget to show the content. The widget can be include in the Custom variable

In widget html you can use styling/css etc to expand or collapse and it would give you more flexibility.

Just remember to include that variable at the start.

Expand/Collapse Text in HTML - Javascript

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader