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
Unanswered

Hour in text field

(0) ShareShare
ReportReport
Posted on by 691

Hello, I'm trying to create a schedule on Power Apps connected to a SharePoint list.
My "Heure" field corresponds to a text type. I'd like to limit the time input field so that users can only enter times between 00:00 and 24:59, but I don't know how to do that. Could you help me please? Thanks in advance !

 

s44_0-1658757224564.png

 

Categories:
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Let's say we have a text input box, the following in it's onchange will check the value entered and if it is a valid time in military time will display a success message (alternatively this can just reset the text input if an error and also give the error, etc. the example is just for you to understand the function) 

     

    You can also put a similar code in the display mode of button below to set it to disabled until the formula is satisfied. 

     

    If(
     And(
     Value(First(Split(TextInput2,":")).Result)<24,
     Value(Last(Split(TextInput2,":")).Result)<60),
     Notify("Action if Valid Time",NotificationType.Success),
     Notify("Action if Invalid Time",NotificationType.Error))

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard