Welcome to the nuBuilder Forums!

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

Display Condition for Objects

Questions related to using nuBuilder Forte.
Locked
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Display Condition for Objects

Unread post by toms »

Hi,

Where/how can I set a "Display Condition" for objects. E.g. to make an object visible if the user's Access Level matches.

In nuBuilderPro:

Code: Select all

SELECT IF('#nu_access_level#' = 'admin', '1', '0')
http://wiki.nubuilder.net/nubuilderv3/i ... _Condition
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Display Condition for Objects

Unread post by admin »

toms,

We removed it because it is easier and more flexible to do it with Javascript.

Code: Select all


if(nuAccessLevelCode()!='' || nuSubformObject('employee_bonuses_subform').rows.length > 2){
    $('#boss_button').remove();
}

Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Display Condition for Objects

Unread post by toms »

Thanks!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Display Condition for Objects

Unread post by admin »

.
Locked