Objects hidden after refreshing page only

Questions related to using nuBuilder Forte.

Objects hidden after refreshing page only

Unread postby oli » Thu May 27, 2021 4:32 pm

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
oli
 
Posts: 70
Joined: Sat Mar 20, 2021 11:52 pm
nuBuilder Version: 4.5

Re: Objects hidden after refreshing page only

Unread postby kev1n » Thu May 27, 2021 8:01 pm

Are you using the latest nuBuilder version?
kev1n
nuBuilder Team
 
Posts: 1763
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Objects hidden after refreshing page only

Unread postby oli » Thu May 27, 2021 8:40 pm

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
oli
 
Posts: 70
Joined: Sat Mar 20, 2021 11:52 pm
nuBuilder Version: 4.5

Re: Objects hidden after refreshing page only

Unread postby kev1n » Thu May 27, 2021 8:49 pm

Try using the nuShow(), nuHide() functions
kev1n
nuBuilder Team
 
Posts: 1763
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Objects hidden after refreshing page only

Unread postby oli » Thu May 27, 2021 9:25 pm

kev1n wrote:Try using the nuShow(), nuHide() functions


Thanks. It's working now!
oli
 
Posts: 70
Joined: Sat Mar 20, 2021 11:52 pm
nuBuilder Version: 4.5


Return to General

Who is online

Users browsing this forum: No registered users and 16 guests