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.

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: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 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: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: Display Condition for Objects

Unread post by admin »

.
Locked