Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Word Count Minimum for Textbox

(0) ShareShare
ReportReport
Posted on by

I'm attempting to create a power app request form, where a justification is required. The justification must have at least a minimum of 25 words and no more than 500 words. In the event the user does not enter 25 words, an error message shows stating "Justification does not meet minimum word requirement".

 

Does anyone have a resolution as to how this can be done.

 

 

Thank You

Categories:
  • GB-23071442-0 Profile Picture
    on at
    Re: Word Count Minimum for Textbox

    @RandyHayes  Thank you sir for your assistance on today. With the solution provided I was able to resolve the error

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Word Count Minimum for Textbox

    @Gilby1986 

    Yes, that will never work!  You are trying to split the text by "Justification does not meet minimum word requirement"...pretty sure your words are not separated by that phrase but by spaces.

     

    The formula should be:

    CountRows(Split(JustificationTextInput.Text, " ")) < 25

     

  • GB-23071442-0 Profile Picture
    on at
    Re: Word Count Minimum for Textbox

    Hi Randy,

     

    Thank you for your prompt response. I attempted to follow your instructions provided. Unfortunately the solution provided did not work. Maybe I'm doing something wrong. I've attached a screenshot of what I've entered.

     

    JustificationError is the label created to display the error message

     

     

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Word Count Minimum for Textbox

    @Gilby1986 

    Set the Visible property of your "Justification does not meet minimum word requirement" label to:

    CountRows(Split(yourTextInputControl.Text, " ")) < 25

     

    I hope this is helpful for you.

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.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard