Announcements
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
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! 🍻
Thank you! I did forget about IsMatch as I probably do not use it often. I will assume that IsMatch uses RegEx strings?
IsNumeric works better.
If(!IsNumeric(Self.Value), Notify("Only numbers are allowed", NotificationType.Warning); Reset(TextInputCanvas1) )
a litle improve:(for replicate on multiple input text)
Thanks for the improvement of the code @fmatamalam and also thank you @SpongYe
Kind regards 👋
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 408
timl 340 Super User 2026 Season 1
Vish WR 319