cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate IV
Advocate IV

Changing a users input text to correct format

due to the time date issues presently with PA, im using text strings to capture time input

 

is there a way to in a textinput box that if the user enters 2011 instead of 20:11 i can format it to 20:11? even using a seperate box(which be the one that would then patch the data)

 

 

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Changing a users input text to correct format

Hi @JC75,

 

You can first add the textinput control and then add another Label control to show and format the data from textinput. For more detailed information, please refer to:

https://powerapps.microsoft.com/en-us/tutorials/show-text-dates-times/

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Advocate IV
Advocate IV

Re: Changing a users input text to correct format

Hi @v-monli-msft I’ve tried that method, but it doesn’t fully work.

 

if say text input by user in input box is 2330

i can get a label box to format it as 23:30. Which is great.

 

however if the user enters 23:30 the label box just shows blank.

 

in infopath it was possible to change the box text on tab, so it either formatted or changed to uppercase etc, while some of this is partly capable in PA, such a using upper and method above, it doesn’t format the same box so look instantly correct to user.

 

example with a text input box(TextInput6) 

 

and a label box with following formula - works if user enters 2230 into textinput, but blank if they enter it correct as 23:30 - which isnt useful where its that value i want to then send as a string to excel.

Text(Value(TextInput6.Text),"[$-en-US]##:##")

 

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,731)