I am trying to use the IsMatch to verify a TextInput of Time. Currently it is
IsMatch( TextInput1_1.Text, OptionalDigits & Digit & ":" & Digit & Digit)
. This is so the user can type in 5:00 and it would work. The problem is that the user can also type in 125:00 or 213455135:00.
Is there a way to just allow a single optional digit?
Solved! Go to Solution.
Could you combine this with the LEFT or RIGHT function and only return a single value to the left of the : sign?
https://powerapps.microsoft.com/en-us/tutorials/function-left-mid-right/
edit: I ment left/right, sorry
Could you combine this with the LEFT or RIGHT function and only return a single value to the left of the : sign?
https://powerapps.microsoft.com/en-us/tutorials/function-left-mid-right/
edit: I ment left/right, sorry
Thanks, that worked. I then discovered though I could just set the maxlength of the text input to 5 so the user can't even type in more than that.
That is what I wanted to suggest.
@Alerts_OM_USA wrote:Thanks, that worked. I then discovered though I could just set the maxlength of the text input to 5 so the user can't even type in more than that.
I didn't know you could do that, great find!
User | Count |
---|---|
171 | |
95 | |
74 | |
72 | |
58 |
User | Count |
---|---|
215 | |
166 | |
97 | |
93 | |
74 |