Page 1 of 1

Can I hide a tab on a form for one user?

Posted: Fri Nov 09, 2012 10:48 am
by martbarr
Can't see how easily - the user has access to the form and button to run it.

I could clone the first form with that tab missing - but that involves more maintenance work if I update things!
I've tried turning off the display of all the fields on that tab but I still get the empty tab showing.

Any clever ways I can conditionally hide the menu for the tab object via code?

Martin

Re: Can I hide a tab on a form for one user?

Posted: Mon Nov 12, 2012 5:53 am
by admin
Martin,

Try this..

Code: Select all

if(access_level() != 'globeadmin'){

   function nuLoadThis(){
      $('#nuMenu0').remove();  //--eg. the first tab
   }

}
Steven

Re: Can I hide a tab on a form for one user?

Posted: Mon Nov 12, 2012 11:13 pm
by martbarr
Brilliant thanks - i keep making everything too Complex!1

Re: Can I hide a tab on a form for one user?

Posted: Tue Nov 13, 2012 11:42 pm
by admin
.