Timeout not pausing
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!
Comments
-
Remove the parenthesis from the submitForm call or put the it in quotes as you have listed.
Example:
function KitChangeFolder() {
$get("btnEnterKitChange").click();
setTimeout(submitForm, 5000);
}OR
function KitChangeFolder() {
$get("btnEnterKitChange").click();
setTimeout("submitForm()", 5000);
}0 -
Thank you! The Designer User Guide documentation shows to include the ()... but apparently not.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories