Force Tabs Off for Certain Form Views

marskh111
Giga Contributor

I created an onLoad client script that I thought would work and it hasn't been. The intent is to force this particular view on this particular table to have tabbed forms OFF. We want it to override preferences for users, forcing it to be untabbed for all. Can anyone assist me in what I might be missing?

Force No tabs.PNG

1 ACCEPTED SOLUTION

Jim Coyne
Kilo Patron

How about just removing the sections from the view and add a form annotation to simulate the different sections - Add a form annotation



The only thing you lose is the ability to hide/display the items in the sections:


find_real_file.png


View solution in original post

14 REPLIES 14

What version of SN are you running?


Helsinki, we decided to just go with your earlier suggested rebuild of the form.


Probably the safest choice, especially when client-side code can fail.



Please remember to mark the appropriate response as being the correct one to help other members see what you used as a solution.   Thanks.


nayanawadhiya1
Kilo Sage

Hey Marskh,



Use this in onLoad Client Script -



g_tabs2Sections.deactivate();



Refer this -


https://www.servicenowguru.com/scripting/client-scripts-scripting/toggle-tabs-client-scripting/


This worked! Thanks!!!!!