I have a calculation field that executes some code.
But I want to delay the execution of the code for a couple of seconds.
Unfortunately the most simple setTimeout() function does not work and I get an error "setTimeout ist not defined":
console.log('Hello World!'); // Or in podios case just "Hello World!" without the console.log
Can somebody please help me, how to delay the execution of code in calculation fields?
(Context: The reason I need the delay is, that I have a status button that has a project on "open". If I set the project status to "inactive", it automatically sets a new due date to one week from now.
But the due date also triggers a workflow depending on the current date, that sets the status to "open" if the due date is < then current date.
Problem is, that the code to change the duedate is executed immediately. But the code that checks the status depends on the server response. That's why I need to build a delay into the execution, so that it is executed after the server response
Please sign in to leave a comment.