I have an issue with in an xslt file which loads an aspx page.
The below works fine when the fields are available & visible.
Though, when the fields are not loaded or not visible then the script does not works. I get the following error:
err: object required
The below works fine when the fields are available & visible.
Though, when the fields are not loaded or not visible then the script does not works. I get the following error:
err: object required
Code:
function Test()
{
VE1020User=document.getElementById('VE1020User').value;
VE1060NewSupplier=document.getElementById('VE1060NewSupplier').value;
if(VE1020User=="")
{
}
else if(VE1060NewSupplier=="")
{
}
else
{
document.getElementById('VE10999Done').click();
document.getElementById('___Submit').click();
}
}
Comment