cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yoursnani
Post Patron
Post Patron

Append comment not working properly

hi @RezaDorrani 

 

I had fallowed your video on append comment function . I am using this scenario on edit screen . what happening here is when I am adding comments, its working fine . but when I am not adding any comments or I am adding others fields. That time previous comments are vanishing.

Comment box only working when you go every time and adding comments.

 

DataCard default Property

Defaults-If(Not(IsBlank(RichTextEditor1.HtmlText)),User().FullName &" "&"   " &Now()&""& RichTextEditor1.HtmlText)&ThisItem.'Comments '

 

Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Yoursnani ,

Probably something like this

With(
   {wComments:ThisItem.'Comments ',}
   If(
      !IsBlank(RichTextEditor1.HtmlText),
      User().FullName & "  " & Text(Now(), "dd/mm/yyyy hh:mm") & " " & RichTextEditor1.HtmlText & wComments,
      wComments
   )
)

 

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

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Yoursnani ,

Probably something like this

With(
   {wComments:ThisItem.'Comments ',}
   If(
      !IsBlank(RichTextEditor1.HtmlText),
      User().FullName & "  " & Text(Now(), "dd/mm/yyyy hh:mm") & " " & RichTextEditor1.HtmlText & wComments,
      wComments
   )
)

 

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

View solution in original post

Hi @WarrenBelz 

But this getting error as below 

 

IMG-20211119-WA0001_compress68.jpg

@Yoursnani ,

You are missing the & after User() .FullName

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,445)