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 / Submit textinput to a ...
Power Apps
Unanswered

Submit textinput to a commentfield in a sharepoint list with timestamp and username

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

 

I was reading about append to comment and that function doesnt really work in powerapps yet, and in my case its kinda crucial. I need that function somehow.

 

Is there anyway to make a textinput in powerapps that I can make a comment inside and click "Save" and then in shows up in an simple commentcolumn I have in a sharepoint list with a timestamp and username of the person who did the comment?

 

See this picture for a reference:

powerapps händelselogg.png

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    My preferred way to do this is by using the PATCH function and an HTML text control.

     

    #1  In SharePoint, change the column type of Comment to multi-line text.  Then Refresh the datasource in PowerApps

     

    #2  Put this code in the OnSelect property of your Save button

     

    Patch(
     your_datasource_name,
     Defaults(your_datasource_name),
     {Comment: "<p>User().FullName&"" ""&Text(Today(),""yyyy-mm-dd""&"" - ""&TextInput1.Text</p>"
    )
     

     

    #3  Finally, create a new HTML Text control to display the comments and put this code in the HtmlText property.

    ThisItem.Comment

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello!

    I tried this but I get an error:

    An operator was expected. We expect an operator such as +, *, or & at this point in the formula.

    and

     

    The name is not valid. This identifier cannot be identified

     error comment.PNG

     

    I really appreciate your help!

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    I've edited my code above.  Forgot to use double-quotes x2 inside the HTMLtext.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Now I got no errors on the code. But when I save the comment it wont show up in the comment section. But it pops up another error on the button that says another field is requiered to be filled in, but the thing is that field is already filled in on that object i'm trying to make a comment on.. This is in a gallery wjth many object, and I want to be able to make comment on single objects in this gallery. Dont I have to use a condition like "Selected" or something? Any idées?

     

    Once again, I really appreciate your help!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is there someone who can help me?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello again! I still havent been able to solve this, is these anyone who can help me?

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard