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 / Change 1 to 1:00 (chan...
Power Apps
Answered

Change 1 to 1:00 (change format based on input)

(0) ShareShare
ReportReport
Posted on by 124

Hey there

 

I'm trying to auto-correct the input of a text field.

E.g. I'd like the field to contain values like "01:00", "08:00", "14:00", etc.

 

Users sometimes just type in "1", "14", or even "100" (stands for 1:00). However, my other formulas don't work anymore when they do so. How can I auto-correct those values into a format mentioned above?

 

Cheers 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @leemex,

    Use a dropdown control loaded with the choices or two controls with hrs and min loaded. PowerApps automatically creates such controls for a date time column. As an alternative it’s easy to create a table on Excel with two columns of consecutive numbers 1 to 24 and  01 to 60 and import them as static tables to load into dropdown controls.  Then Concatenate the fields with β€œ:” for the Update property of the datacard or in a Patch().

  • leemex Profile Picture
    124 on at

    I was thinking of a dropdown as well. Just thought there are different methods to make it more user-friendly. Guess I have to make it like this then. I also thought about creating rules which are changing the numbers directly after the user enters those. However, seems like whenever you'd like to define the "then do what" action, it is greyed out.

     

    Anyway, thanks for the confirmation!

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard