web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : qD1GcWBDJ3g74L4wgfMV2Z
Power Apps - Building Power Apps
Answered

Word Count Minimum for Textbox

Like (0) ShareShare
ReportReport
Posted on 18 Aug 2022 14:40:40 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 18 Aug 2022 at 18:28:16
    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 18 Aug 2022 at 16:16:37
    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 18 Aug 2022 at 16:14:18
    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 18 Aug 2022 at 14:51:04
    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete