Set Timeout Delay — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Set Timeout Delay

Summary:

How to set Time Out /Delay after 30 seconds of Inactivity

We are using this Function to delay 30 seconds

PageModule.prototype.timeoutAfter = function(seconds){
return new Promise(function(resolve){window.setTimeout(function(){resolve()},seconds*1000)});
};

But the Page Times Out while entering the data in the Page.

What additional validation needs to be done in the above Function so that the Page Times out only if the data is not entered until 30 seconds?

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!