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

For Specific View and for Specific form may be it is not possible.



Use this script in BACKGROUND SCRIPT to forcefully un-tabbed form for all users -



var gr = new GlideRecord('sys_user_preference');


gr.addQuery('name','tabbed.forms');


gr.query();



while(gr.next())


{


gr.value = false;


gr.update();


}


If I answer your question then MARK ANSWER AS CORRECT to close this thread.


Yeah, that's the user preference for ALL forms, which is not what you want.   I'd sty away from that.


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


That is definitely an option! Still curious why the client script wouldn't work though, since in many articles i've read others have been successful using it! Thanks for the idea though, will probably approach that way.