- Wed Feb 06, 2019 9:37 am
#822783
I have a form, where a checkbox controls the display of a subform.
Below code in the form works at entry (hides the subform) and when I click the checkbox (displays the subform).
But when I then again removes the check, the subforms no longer disappears.
All hints are appreciated.
Below code in the form works at entry (hides the subform) and when I click the checkbox (displays the subform).
But when I then again removes the check, the subforms no longer disappears.
All hints are appreciated.
Code: Select all
function ShowHideOracle(newVal,oldVal)
{
if ( newVal == '0' ) {
$('#OraDatabaseInstances').disableValidation();
$('#OraProcesses').disableValidation();
$('#OraDbFiles').disableValidation();
$('#OraRedoLogs').disableValidation();
$("#8979782105c5302564bd1d9006827115").hide();
} else {
$("#8979782105c5302564bd1d9006827115").show();
$('#OraDatabaseInstances').enableValidation();
$('#OraProcesses').enableValidation();
$('#OraDbFiles').enableValidation();
$('#OraRedoLogs').enableValidation();
}
}
$('#OracleWanted').setOnchange(ShowHideOracle);
$('#OraDatabaseInstances').disableValidation();
$('#OraProcesses').disableValidation();
$('#OraDbFiles').disableValidation();
$('#OraRedoLogs').disableValidation();
$("#8979782105c5302564bd1d9006827115").hide();