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 Apps
Answered

Form "time entry"

(0) ShareShare
ReportReport
Posted on by 6

Hi All,

I am currently having issues with creating an entry field that allows the user to select/input a time, I am using "Text(Now(), DateTimeFormat.ShortTime)" as the Defult Data and ""Text(DateTimeFormat.ShortTime)" as the format. However, this is not ideal as the user has to manually type in the time and this is inconvenient for the user and will create variances in the data entries between users. I was wondering if there was a way to make it more user friendly, for example have it as a selection like the date picker control.

 

Any help/advice would be much appreciated.

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @whitciv,

    Could you please share a bit more about your scenario?

    Do you want your users to select a time value rather than type manually within your app?

    Based on the needs that you mentioned, I think the Dropdown controls could achieve your needs.

    I have made a test on my side, please take a try with the following workaround:2.JPG

     

    3.JPG

     

    4.JPG

    Set the OnVisible property of the screen which contains the Time entry input box to following:

    Set(SelectedTime, Blank())

    Set the Default property of the Text Input box (Time Input box) to following:

    If(!IsBlank(SelectedTime), SelectedTime, Text(Now(), DateTimeFormat.ShortTime))

     

    Set the Items property of the HourDropdown box to following:

    ["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"]

    Set the OnChange property of the HourDropdown box to following:

    Set(SelectedTime, Time(Value(HourDropdown.Selected.Value),Value(MinuteDropdown.Selected.Value),0))

    Set the Items property of the MinuteDropdown box to following:

    ["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"]

    Set the OnChange property of the MinuteDropdown box to following:

    Set(SelectedTime, Time(Value(HourDropdown.Selected.Value),Value(MinuteDropdown.Selected.Value),0))

    Please check the attached GIF screenshot for more details:

     

     

    Best regards,

    Kris

    Test1.gif

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard