• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

  • Due to Holi celebrations, our team will have limited availability. While we’ll continue to monitor threads, responses may be slightly delayed.

setTimeout() replacement

Yan

Member
Consent to Access & Modify
I don't authorize Pabbly Support to log in to my account.
Hi there,
now that setTimeout() is restricted (since 2nd Feb), what are the alternatives to create a delay for seconds?
So far, a code step was my only option to create this...
I know there's the delay app (pabbly), however it doesn't support seconds units - only minutes, hours, days etc. So it's not an option.

Would you add an option for seconds as a unit in the delay app?
otherwise, what are my options for having a few seconds delay?

Thank you
 

Attachments

  • צילום מסך 2026-03-05 125517.png
    צילום מסך 2026-03-05 125517.png
    57 KB · Views: 4

Preeti Paryani

Well-known member
Staff member
Hey @Yan,

You can use this JavaScript code instead:

const delaySeconds = 20;
const start = Date.now();

while (Date.now() - start < delaySeconds * 1000) {
// wait
}

output = [{ wait: delaySeconds + " seconds" }];
 
  • Like
Reactions: Yan
Top