Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

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

Locked
martbarr
Posts: 60
Joined: Fri Oct 26, 2012 8:09 pm

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

Unread post 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
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

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

Unread post by admin »

Martin,

Try this..

Code: Select all

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

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

}
Steven
martbarr
Posts: 60
Joined: Fri Oct 26, 2012 8:09 pm

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

Unread post by martbarr »

Brilliant thanks - i keep making everything too Complex!1
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

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

Unread post by admin »

.
Locked