Welcome to the nuBuilder Forums!

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

Change button color when button is disabled for user Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
88tc88
Posts: 12
Joined: Tue Mar 04, 2025 10:53 am
Has thanked: 10 times

Change button color when button is disabled for user

Unread post by 88tc88 »

Hi all! Quick and hopefully relatively easy question:

Is it possible to make the run- and input-buttons at my nuuserhome turn grey when they are disabled for the user that is viewing the page? Currently all the buttons on this page are default blue, but after applying acces levels I would like to turn the buttons that are not accessible (i.e. the buttons that lead to a form or report that is not accessible) to be grey.

Thanks in advance!
steven
Posts: 359
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 48 times
Been thanked: 47 times

Re: Change button color when button is disabled for user

Unread post by steven »

Hi 88c88,

Sometimes its easier, and more user friendly for each Access Level to have its own Home Form along with just the Buttons for that Level...

This might help... viewtopic.php?p=30607#p30607

OR

You'll need to put some JS on the Home Form that does something like this...

Code: Select all

if(nuAccessLevelCode() == 'Sales'){
    $('#myButton').css('background-color', 'grey')
}
ac2.png


Steven
You do not have the required permissions to view the files attached to this post.
If you like nuBuilder, how about leaving a nice review on SourceForge?
88tc88
Posts: 12
Joined: Tue Mar 04, 2025 10:53 am
Has thanked: 10 times

Re: Change button color when button is disabled for user

Unread post by 88tc88 »

Thanks Steven, it works perfectly!
Post Reply