Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
How to hide the "Back" button from non-globeadmin users Topic is solved
How to hide the "Back" button from non-globeadmin users
How would I hide the "Back" button from non-globeadmin users?
-
- Posts: 36
- Joined: Sat Jun 09, 2018 4:36 pm
- Location: Netherlands
- Has thanked: 6 times
- Been thanked: 1 time
- Contact:
Re: How to hide the "Back" button from non-globeadmin users
Place this code in your form or (if needed for every form) in setup:
if (nuUserLogin()="" ){
nuHide('nuBackButton");
}
if (nuUserLogin()="" ){
nuHide('nuBackButton");
}
Re: How to hide the "Back" button from non-globeadmin users
What Back Button do you mean.
A short post is a good post.
Buy Kev a Coffee
Buy Kev a Coffee
Re: How to hide the "Back" button from non-globeadmin users
This one:
You do not have the required permissions to view the files attached to this post.
Re: How to hide the "Back" button from non-globeadmin users
Paul,
If you have an element called nuBackButton, you can use Jannie's code with a couple of changes...
If you have an element called nuBackButton, you can use Jannie's code with a couple of changes...
Code: Select all
if (nuUserLogin()!="globeadmin" ){
nuHide("nuBackButton");
}
A short post is a good post.
Buy Kev a Coffee
Buy Kev a Coffee
Re: How to hide the "Back" button from non-globeadmin users
I tried that code (in the Browse custom code):
and logged in as a non-admin user and this is the result:
Code: Select all
if (nuUserLogin()=="" ){
nuHide("nuBackButton");
}
You do not have the required permissions to view the files attached to this post.
Re: How to hide the "Back" button from non-globeadmin users
Paul,
Maybe you have no element called nuBackButton (it is case sensative).
You could check this by running this in the browser console (F12)...
If this returns 0 there is no element with that ID.
Maybe you have no element called nuBackButton (it is case sensative).
You could check this by running this in the browser console (F12)...
Code: Select all
$('#nuBackButton').length
A short post is a good post.
Buy Kev a Coffee
Buy Kev a Coffee
Re: How to hide the "Back" button from non-globeadmin users
You do not have the required permissions to view the files attached to this post.
Re: How to hide the "Back" button from non-globeadmin users
Then this should work...
BTW nuUserLogin() != 'globeadmin'
Code: Select all
$('#nuBackButton').hide()
A short post is a good post.
Buy Kev a Coffee
Buy Kev a Coffee
Re: How to hide the "Back" button from non-globeadmin users
When placed in the custom code for Browse form, the code:
does not hide the Back button for any user.
Code: Select all
$('#nuBackButton').hide()