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 / Limit the number of ch...
Power Apps
Unanswered

Limit the number of characters for a multi-line rich-text content field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a multi-line rich-text content field that is part of a form that I'm building in PowerApps and that I'm going to use in SP List. I want this field to be limited to 375 characters, but that allows the user to type bullet points, line breaks, etc. Something similar to a twitter post.

Categories:
I have the same question (0)
  • KLatch Profile Picture
    57 on at

    I played around and you seem to able to strip out the tags from the html string the richtextbox exposes with the following:

     

    Concat(AddColumns(Split(RichTextEditor1.HtmlText,"<"),"NewResult",Mid(Result,Coalesce(Find(">",Result),0)+1)),NewResult)

     

    If you wanted to then prevent submissions from going over 375 characters, you could set your DisplayMode on your submit button to disabled if the length of the above formula goes over that limit.

     

    If(
     Len(Concat(AddColumns(Split(RichTextEditor1.HtmlText,"<"),"NewResult",Mid(Result,Coalesce(Find(">",Result),0)+1)),NewResult))>375,
     Disabled,
     Edit
    )

     

  • MavisQing Profile Picture
    19 on at

    I find a more easy way . You can just use below and then can get the length of Rich text editor

     

    Len(PlainText(RichTextEditor2.HtmlText))

    MavisQing_0-1662103734459.png

     

    The text above the rich text editor used : 

    PlainText(RichTextEditor2.HtmlText)

    It directly show the text content and then you can just use the Len to calculate the length !

    The 50 is the length i calculated use the <Len(PlainText(RichTextEditor2.HtmlText))>

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard