web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / User defined countdown...
Power Apps
Answered

User defined countdown timer

(0) ShareShare
ReportReport
Posted on by 4

Hi. I'm new to Power Apps and not good with code.  I've pieced together how to make a countdown timer.  I have the timer and buttons for start, stop, reset, and set timer, and an alarm sound file.

I found how to adjust the timer length but it only easily allows whole numbers or 15 min increments like 4.25 or 4.75.  I would like it to allow anything, i.e. 4min 55sec without having to guess what the decimal values are.

This is the formula for my Set Timer button, Reset(Timer1);UpdateContext({timerVal:Value(TimeTextbox.Text)*60000});   The text box name is TimeTextbox.  Can I do this with one text input or will I need say 3 boxes?  One each for hh, mm, ss?

Categories:
I have the same question (0)
  • Verified answer
    slerch Profile Picture
    59 on at

    If you don't trust people to format text inputs correctly (which you probably haven't learned yet that you shouldn't), I would recommend 3 text inputs. Your formula will then look like:

    Reset(Timer1);
    UpdateContext(
    {timerVal:Value(SecondsTextBox.Text)*1000 + Value(MinutesTextBox.Text)*60*1000 + Value(HoursTextBox.Text)*60*60*1000}
    );

     

  • MattC007 Profile Picture
    4 on at

    Thanks a million!  It worked and I can change it to any time.  This will make my Users happy.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard