Welcome to the nuBuilder Forums!

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

Objects hidden after refreshing page only

Questions related to using nuBuilder Forte.
Post Reply
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Objects hidden after refreshing page only

Unread post by oli »

HI.

I'm facing a issue when I try to hide objects (RUN-Button and Display Field) on a form.

With following Custom Code on the Form I try to hide / show several objects based on one condition (Display Object "disp_ang_rechnung" is empty):

Code: Select all

if($('#disp_ang_rechnung').val() === ''){
    $('#disp_ang_rechnung').hide();
    $('#run_rechnung').hide();
    $('#run_rechnung_neu').show();
}else{
    $('#run_rechnung_neu').hide();
}
When I now open an existing record the button "run_rechnung_neu'" is visible on the 1st tab of the form (even it is defined on the 2nd tab only) and other objects are visible, too .
After pressing the refresh button of the Form the objects will be showed or hidden - based on the condition. What did I miss ??

Thanks in advance and best regards,
Oli
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 446 times
Contact:

Re: Objects hidden after refreshing page only

Unread post by kev1n »

Are you using the latest nuBuilder version?
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Re: Objects hidden after refreshing page only

Unread post by oli »

kev1n wrote:Are you using the latest nuBuilder version?
DB Version: V.4.5-2021.04.29.00
Files Version: V.4.5-2021.05.06.03
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 446 times
Contact:

Re: Objects hidden after refreshing page only

Unread post by kev1n »

Try using the nuShow(), nuHide() functions
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Re: Objects hidden after refreshing page only

Unread post by oli »

kev1n wrote:Try using the nuShow(), nuHide() functions
Thanks. It's working now!
Post Reply