How To hide module based on reference field in ServiceNow

AA6
Tera Contributor

How To hide module based on reference field in ServiceNow

2 REPLIES 2

Samaksh Wani
Giga Sage
Giga Sage

Hello @AA6 

 

pls explain your requirement in brief

Netaji Kadam
Tera Contributor

Hi @AA6 

 

To hide modules and sections in a specific template, you'll need to add a list of hiddenModules and hiddenSections in the template annotations. For example:

// example template file

<!--

templateType: page

isAvailableForNewContent: true

label: Ticket listing

screenshotPath: ../images/template-previews/ticket-listing.png

hiddenModules:

- '@hubSpot/follow_me'

- ../modules/form

hiddenSections:

- ../sections/card

-->

 

Regards 

Netaji Kadam