Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

plaintext() - seems to work additionally like patch() - normal? can it be prevented?

(1) ShareShare
ReportReport
Posted on by 153
Dear all,
 
I am using plaintext function in the value property of a modern textcontrol with a sharepoint rich text column, since otherwise the modern textcontrol shows my a html code instead of a text.
 
Peculiarly I have just found out, that every time I save an item in my app, the item always gets updated in the new version in the mentioned rich text column - no matter, whether I do change the text in the control or not.
 
If I don't use plaintext() function, this doesn't happen - as expected it only updates the item, if I change the text in the control. If I don't - it doesn't happen.
 
I could find no data on this - Is it known? Intended? Or is it some sort of a bug?
 
It doesn't do any harm actually, but each version of the item lists the updates of all columns using plain text with same values all over again - this is a little bit annoying and could cause unwanted question on user's side.
 
Still - any way to prevent this from happening?
Categories:
  • Nuriel Profile Picture
    153 on at
    plaintext() - seems to work additionally like patch() - normal? can it be prevented?
    I am using patch function instead of submitform.
     
    Still, I don't quite understand why it happens - I mean, why would it update, when nothing gets changed? The content is already formatted - why would it update the column on saving then?
  • Michael E. Gernaey Profile Picture
    41,072 Super User 2025 Season 1 on at
    plaintext() - seems to work additionally like patch() - normal? can it be prevented?
    Hi,
     
    So you are using a Text Input Control?

    And you have loading it with Data, from a Rich Text Column in SharePoint.

    You are changing the Formatting so it doesn't show the HTML.

    I would expect it to update the column in SharePoint, yes, because you are in fact changing what is in there. is this on a Form and you doing a SubmitForm? If so that's why.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard