• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Timer Question -Pause /Wait

Participant ,
Aug 23, 2023 Aug 23, 2023

Copy link to clipboard

Copied

I have a CF process where I click a submit button.

 

Then I need the process to wait/pause for 30 seconds and then run another check.

 

If the check is no the process ends.

 

If the check is yes then i need the process to wait for 10 more seconds and then run the checks again.

 

What is a good way to do this to get the processes to wait the 30 seconds and then the 10 seconds?

Views

166

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 23, 2023 Aug 23, 2023

Copy link to clipboard

Copied

Do you need the user to wait for this process or is it done "behind the scenes"? 

If the user has to wait, you'll need some Javascript to build a user interface.

If behind the scenes, your can use the sleep() function

For instance, to wait for 30 secs: #sleep(30000)#

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 23, 2023 Aug 23, 2023

Copy link to clipboard

Copied

Just an add-on thought, even if the sleep happens "behind the scenes," you'll want to visually show the user a notification or spinner-type object that lets them know that something actually IS happening -- otherwise there will probably be multiple followup clicks by the user when they don't see anything happening onscreen.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 23, 2023 Aug 23, 2023

Copy link to clipboard

Copied

Yes, my thinking, too, but I didn't articulate it as well as this

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 23, 2023 Aug 23, 2023

Copy link to clipboard

Copied

LATEST

Here is what happens

 

User clikcs submit and then is redirected to another page

 

Once they click submit a 30 second wait /pause should start in the background.

 

After 30 seconds a check is made 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation