I know I can set the classic control's TextFormat property, but can this be done using the modern control? I see the Type is only Text, Search, Password.
Thanks for the information and help
a litle improve:
(for replicate on multiple input text)
IsNumeric works better.
If(!IsNumeric(Self.Value),
Notify("Only numbers are allowed", NotificationType.Warning); Reset(TextInputCanvas1)
)
Thank you! I did forget about IsMatch as I probably do not use it often. I will assume that IsMatch uses RegEx strings?
Hi @iskguy
Set on the OnChange the following code:
If(!IsMatch(TextInputCanvas1.Value,"[0-9]+"),
Notify("Only numbers are allowed", NotificationType.Warning);Reset(TextInputCanvas1),
false
)
If you have any questions or feedback, please let me know. Have a great day! 😊
-----------------------
PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional