Objects hidden after refreshing page only
Posted: Thu May 27, 2021 9:02 am
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):
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
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();
}
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