I have a form with two buttons - one to open a child process folder and another to close the form. The close form button has a function to "click" the other button and then close the form. But the timeout doesn't wait, it just immediately closes.
function KitChangeFolder() {
$get("btnEnterKitChange").click();
setTimeout(submitForm(),5000);
}
If I comment the setTimeout line, the function works as expected but with the line, no matter how long the timeout, it just immediately closes. I've also tried it with "window.setTimeout"
Any ideas? Thanks!