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 / Show more comments fun...
Power Apps
Answered

Show more comments functionality like Facebook in Powerapps

(0) ShareShare
ReportReport
Posted on by 603

I want to implement View more comments functionality like Facebook in Powerapp mobile application with SharePoint as the datasource. 

 

My comments are available in SharePoint lists based on Post ID. I am using a global variable to show my comments in my Powerapp screen using below formula. 

 

App.OnStart

Set(
glbCurrentRecord,
First(
Filter(
MyComments,
ID in Param("myID")
)
)
)

 

TextInput Control Text property which shows only one comment. 

 

glbcurrentrecord.comments

 

I have multiple comments for my posts. Any idea on how to achieve something similar as below screenshot in Powerapp ?

 

Scr.png

Categories:
I have the same question (0)
  • Ashwin7104 Profile Picture
    671 on at

    Hi @Iantaylor2050 ,

     

    Use collection to store filtered records from comments list based on ID and display the same in gallery items. Add more records 

     

    ClearCollect(glbCurrentRecord, Filter(MyComments, ID = Param("myID")))

     

  • Moximox Profile Picture
    135 on at

    Hi

    this is simply changing a state visible on a multiline textbox when button clicked. 

    mox

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Iantaylor2050 ,

     

    You can create a collection OnStart of App as @Ashwin7104 said. But to implement the "See more" functionality, I would suggest you add an additional Gallery just below the comment text input control and a Label with Text set to "See more" and adjust the appearance of the text through the Label's font related properties. And, set a variable OnSelect to show/hide the Gallery mentioned above.

    UpdateContext({ShowGallery:!ShowGallery})

     

    For the Gallery, the Items property set to the collection, Visible set to the variable ShowGallery. So click on the Label will switch the visibility of the Gallery, just like the "See more" "See less" functionality.

     

    Besides, if you have other controls below the "comments area", you can add a Container first then add the Gallery in it, cut and paste all the controls below into the Container as well so that they will change position adjust to the Gallery's hide and show.

     

    Hope this helps.

     

    Best regards,

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard