Hide or disable tabs on a form

gustavo1
Kilo Contributor

Hi all,
Is it possible to hide or disable some tabs on a form, not the customizable section but the out of the box tabs, ie: on Project form I wantwould like to hide some tabs such as:
- Baselines
- User resources
Any suggestion is very welcome.
Thanks.

5 REPLIES 5

Jim Coyne
Kilo Patron

I think you mean the Related Lists at the bottom of the form:
http://wiki.servicenow.com/index.php?title=Personalizing_Forms#Adding_a_Related_List


nikita_mironov
Kilo Guru

Hi
Here is the script example that helps to understand how to hide a form section:
http://wiki.servicenow.com/index.php?title=GlideForm_%28g_form%29#getSections (the code there is for client script, runs in agent browser)
Briefly speaking - you need to know the section number (order) to be able to hide it and then hide it.

For hiding related lists you may probably use this gform object method: http://wiki.servicenow.com/index.php?title=GlideForm_%28g_form%29#hideRelatedList


Dwight S_1
Tera Contributor

I know this is a fairly old post, but I came across it when I wanted to "disable" a section on a form and was hoping not to have to write code to "hide it" but avoid deleting it as I invested a lot in the section and thought the client may want to keep it around.   To do this, I did the following:


1. Went to Form Sections and found the section I wanted to "disable"


2. There is a related list called Form Sections allowing a user to relate a section to to a table in a certain position.   I removed the Form Section record for the one section I wanted to disable such that the related Form Sections list was empty.   Note that the Section Elements are still there.   I did not lost them.


3. When I went to the form with this section, I noticed that the section was still there .   I did a Configure > Form Layout and noticed it wasn't in the Sections list.   I saved and the form now no longer had the section, but the section has been preserved for later use.



Dwight Sikkema


kkswamy
Tera Expert

Hi,


In addition to the above replies,


to disable the perticular section or tab or related list from the form view, you can


Right click on the form header, Go to Configure-->related lists.


Then move the required tab or section from right slush bucket to left slush bucket and "Save".