Notifications
Announcements
Hello community,
I need to implement a word limit to a text input field in the app that I've been building. I know I can set the MaxLength property for characters, but I need to specifically limit the text input to 250 words (which is approximately 1500 characters). I know this is not a built-in feature but, is there a way that I can achieve this?
Thank you,
Its in the advanced options:
Thanks @KRider I thought MaxLength property was the character limit, not word limit. Can you verify? The related questions I find on the forum also make me think that it is a character limit.
It absolutely is character limit. You could use a label to count the words and then not allow submit unless the word count is under 1500.
CountRows(Filter(MatchAll(Textcontrol.Text, "\S*(\s|\n?)"), !IsBlank(FullMatch)))
Then in the Display mode of your submit button:
If( CountRows(Filter(MatchAll(TextInput2.Text, "\S*(\s|\n?)"), !IsBlank(FullMatch))) <= 1500, //submit code, //notify to shorten code )
@thatakke
There is no word limit in PowerApps. There is only a character limit. Nice solution @KRider!
Thanks @KRider this is a very smart approach and exactly what I was looking for from this community.
hahaha, no problem. I've learned from my super user friends. Very smart people! I owe @Drrickryp a pop or two for showing me Coalesce!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268