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 / Appended comment field...
Power Apps
Unanswered

Appended comment field incorrectly populating with existing item data

(0) ShareShare
ReportReport
Posted on by 5

I need some help troubleshooting, i.e., determining places I should check to fix an issue. I followed the process here that explains how to create an appended comments field in Power Apps, and it works great. However, under certain circumstances, when the New button is clicked from the SP list after viewing and closing an existing item from the list, the new item is populating with all appended comments from the item that was just closed. 

 

Here is a list of the circumstances:

Actions 

Result 

Expected? 

Refresh list, then click New 

No comments appear in the new item 

Yes 

Edit a list item that contains comments, Save, then click New 

No comments appear in the new item 

Yes 

Open list item with comments, click away, then click New 

All comments from the previous item viewed appear in new item 

No 

Make an update to an existing record, click Save, then click New 

No comments appear in the new item 

Yes 

Open list item with comments, click X to close, then click New 

All comments from the previous item viewed appear in new item 

No 

 

The top image below shows the New item, with the comments populating in error, and the bottom image is a section of the existing item I had open before clicking the new button. I’m perplexed, seems illogical that this is possible.

vnevitt_0-1654102702181.png

Note that this is a SharePoint integration Power App, as opposed to an app created directly from Power Apps. @RezaDorrani 

Categories:
  • One Profile Picture
    416 on at

    Hi @vnevitt,

     

    it looks to me like your form isn't discerning between edit mode and new mode properly. you will need an if statement in the default property of your comments box that checks if you're opening a new form or viewing/editing an existing form. if you don't have that if() statement the form will assume you always want it to populate the comments box. Unless you have an If statement telling it when to populate with certain values, it will always populate with that default value if there is one. 

  • vnevitt Profile Picture
    5 on at

    Agree, that's the path we were exploring. The default for the data card is this:

    If(NotNot(IsBlank(RichTextComments.HtmlText)),User().FullName & " " & Now() & RichTextComments.HtmlText & Char(13)) & ThisItem.'Current status update'

    I'm thinking that we need to add a nested If stmt at the beginning like SharePointForm1.defaultview. not equal to New, but having trouble figuring out how to add the exact required language.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard