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 Hide this Related List (Details, Approve Start Date and Approved End Date) based On License

Jagadees22
Tera Contributor

Hi @ Ankur Bawiskar

How to Hide this Related List (Details, Approve Start Date and Approved End Date) based On License Duration Variable For Particular Catalog Item
@Ankur Bawiskar 

Jagadees22
1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Jagadees22 

you can show/hide related list using this syntax

if it's OOTB related list then use this syntax

g_form.hideRelatedList('related_list_table_name'); // name of related list in lowercase and space separated by _

If it's defined relationship then use this syntax

g_form.hideRelatedList('REL:sysId');

To know the sysId do this

1) Right click on list header -> Configure -> List Control

AnkurBawiskar_0-1746711795201.png

2) select the Related list field and use that

AnkurBawiskar_1-1746711889379.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Jagadees22 

you can show/hide related list using this syntax

if it's OOTB related list then use this syntax

g_form.hideRelatedList('related_list_table_name'); // name of related list in lowercase and space separated by _

If it's defined relationship then use this syntax

g_form.hideRelatedList('REL:sysId');

To know the sysId do this

1) Right click on list header -> Configure -> List Control

AnkurBawiskar_0-1746711795201.png

2) select the Related list field and use that

AnkurBawiskar_1-1746711889379.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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