V3 alternative to #nuMenu remove via nuLoadThis

V3 alternative to #nuMenu remove via nuLoadThis

Postby mobilemcclintic » Sat Feb 20, 2016 2:24 am

Good morning,
I was wondering if V3 has an alternative to the below code for V2:

Code: Select all
if(access_level() != 'globeadmin'){

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


I am setting permissions on specific objects, but in some instances, I have a complete tab that should be hidden (calculations or reviews of information that normal people shouldn't see)
Posts: 54
Joined: Fri Oct 23, 2015 8:04 am

Re: V3 alternative to #nuMenu remove via nuLoadThis

Postby admin » Tue Feb 23, 2016 7:18 am


The IDs of the tabs are different but you can find out their names by pushing F12 in your browser, clicking on the inspect icon element (highlighted in yellow) and putting your cursor over the element in question.

Capture.PNG (82.01 KiB) Viewed 3119 times

And you can use nuLoadEdit() instead of nuLoadThis. (http://wiki.nubuilder.net/nubuilderv3/index.php/Javascript_Functions#nuLoadEdit.28.29

Site Admin
Posts: 3406
Joined: Mon Jun 15, 2009 9:53 am
nuBuilder Version: 4.5

Return to Custom Code