How do you set the "Description" field to expandable for a Catalog Item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 03:06 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 03:12 AM
SCreenshot will be helpful
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 03:13 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 03:28 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 03:34 AM
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
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader