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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / dont allow more charac...
Power Apps
Answered

dont allow more characters than fills multi line text box

(0) ShareShare
ReportReport
Posted on by 334
I have a text box that feeds into a powerbi report. the PBI report has a fixed size text box so I want to restrict the about of text someone can type into powerapps. 

how can I create some logic so that this text box displays an error if someone types in too much text?

e.g.
this is ok

but this is not (scroll bar has appeared)
 


character count wont work for this. so I need a different solution. 
 
thanks!
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    6,334 Super User 2026 Season 1 on at
    There is a max length property this can helps
     
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
     
  • 11manish Profile Picture
    845 on at
    Use MaxLength to restrict input

    Use Len() validation to show errors and control submission
  • nick9one1 Profile Picture
    334 on at
    Len() and max length dont work for this problem. 
     
    If the user has used carriage return to create new lines the character count will be low, but the text will still exceed the size of the box 
  • Verified answer
    nick9one1 Profile Picture
    334 on at
    I found a solution.
     
    I created a hidden textbox behind the input with autoheight.

    textbox.text = textinput.text

    If textbox.height > textinput.height (i.e. the scroll bar has appeared), make the border red. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard