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

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard