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 Apps
Answered

Comments History

(0) ShareShare
ReportReport
Posted on by 1,265

I have a form where I want to enter Comments/Updates in the field shown "TextInput_NewComments.Text" and have those added to the Comment History field.  Currently I have both fields in the Comments_DataCard1.

RJF61_2-1669844248315.png

In the default property of  Comments_DataCard1 I have the following... 

If(
frmIssueTracker=FormMode.Edit,
ThisItem.Comments & User().FullName & " - " & Text(Now(), "mm/dd/yyyy hh:mm:ss") & " - " & 'TextInput_NewComments.Text'.Text & Char(10) & Char(10),
ThisItem.Comments,
)

When I add text to TextInput_NewComments.Text I am not getting any changes to the History fields.

Any suggestions on what I am doing incorrectly?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,896 Most Valuable Professional on at

    Hi @RJF61 ,

    I just tested this and it worked, but one thing I noticed in yours was 'TextInput_NewComments.Text'.Text- what is the actual name of the new comments box ?

    ThisItem.Comments & If(
     frmIssueTracker.Mode = FormMode.Edit,
     User().FullName & " - " & 
     Text(
     Now(),
     "mm/dd/yyyy hh:mm:ss"
     ) & " - " & 'TextInput_NewComments'.Text & Char(10) & Char(10)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz Thanks for the response.  The actual field name was…TextInput_NewComments.Text

    Probably a bad practice in naming

  • WarrenBelz Profile Picture
    155,896 Most Valuable Professional on at

    Hi @RJF61 ,

    I thought that may be issue, but see below

    MultiLineAdd.gif

    The code on the Default of the top box is (I used some of your control names)

    ThisItem.MultiLineTextTest & If(
     frmIssueTracker.Mode = FormMode.Edit && Len(TextInput_NewComments.Text) > 0,
     Char(10) & Char(10) & User().FullName & " - " & Text(
     Now(),
     "mm/dd/yyyy hh:mm:ss"
     ) & " - " & 'TextInput_NewComments'.Text & Char(10) & Char(10)
    )

    What is not working in yours ? 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz When I enter information in the Comment/Update box I do not receive any comments in the history field.

  • Verified answer
    WarrenBelz Profile Picture
    155,896 Most Valuable Professional on at

    Hi @RJF61 ,
    As per the test I posted, the Default of Comments_DataCard1 can be

    ThisItem.Comments & 
    If(
     frmIssueTracker.Mode = FormMode.Edit && Len('TextInput_NewComments.Text'.Text) > 0,
     Char(10) & Char(10) & User().FullName & " - " & 
     Text(
     Now(),
     "mm/dd/yyyy hh:mm:ss"
     ) & 
     " - " & 'TextInput_NewComments.Text'.Text
    )

    and the output of your new comments should appear at the end of the existing comments box.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz The Default information you provided works great (and is saving to SharePoint).  Unfortunately, the history is not displaying in the PowerApp form.  Frankly, I have tweeked this form and the fields too much.  Is there a setting I should be looking for?

     

    Also, after some Google searching I found information regarding "Patch".  Is that a better method?

  • WarrenBelz Profile Picture
    155,896 Most Valuable Professional on at

    Hi @RJF61 ,

    A bit hard without seeing your current settings, but I suspect you have some event OnChange, OnSelect maybe that is causing this. All you really need is for the History box Default the code I posted and no Default in the other one. The Update of the History Data Card should simply be the TextBoxName.Text and it will write back to SharePoint. What is the Update of this Data Card and are you actually seeing data appear in the other box as it is typed ?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • RJF61 Profile Picture
    1,265 on at

    Hi @WarrenBelz Thanks for the follow-up.  I found the issue was that I had a change in the Versioning.  The "Create a version each time you edit an item in this list?" was set to "Yes".  Changed to "No" and all works well.

  • FutbalFan7 Profile Picture
    10 on at

    Hello @RJF61 and @WarrenBelz, I am looking for a similar solution. I am getting caught up on where you two have pulled 'frmIssueTracker' from. Is this the name of the form? Thanks

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard