Page 1 of 1

Objects hidden after refreshing page only

Posted: Thu May 27, 2021 9:02 am
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

Re: Objects hidden after refreshing page only

Posted: Thu May 27, 2021 12:31 pm
by kev1n
Are you using the latest nuBuilder version?

Re: Objects hidden after refreshing page only

Posted: Thu May 27, 2021 1:10 pm
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

Re: Objects hidden after refreshing page only

Posted: Thu May 27, 2021 1:19 pm
by kev1n
Try using the nuShow(), nuHide() functions

Re: Objects hidden after refreshing page only

Posted: Thu May 27, 2021 1:55 pm
by oli
kev1n wrote:Try using the nuShow(), nuHide() functions
Thanks. It's working now!