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 / Remove blank images fr...
Power Apps
Unanswered

Remove blank images from collection - Slideshow

(0) ShareShare
ReportReport
Posted on by 603

I have a powerapp screen where i have implemented a slideshow using below code. 

 

OnVisible of Screen

Collect(
imgList,
{
img: globvar.Image1,
order: 1
},
{
img: globvar.Image2,
order: 2
},
{
img: globvar.Image3,
order: 3
},
{
img: globvar.Image4,
order: 4
}
);
UpdateContext({currentImg: 1});

 

Image field

LookUp(imgList,order=currentImg).img

 

Back Icon in slideshow

UpdateContext({currentImg:If(currentImg=1,Max(imgList,order),currentImg-1)})

 

Next Icon in slideshow

UpdateContext({currentImg:If(currentImg=1,Max(imgList,order),currentImg+1)})

 

I have 2 images only in above collection and 2 images are empty, then clicking on next icon should not show blank images. However currently it shows blank images as well.

 

May i know how to avoid this?

 

 

Categories:
  • jadhav_ravi_oo7 Profile Picture
    276 on at

     

    Spoiler (Highlight to read)
    brother Kindly remove the blank records from collection. by using below formula then update the order by using patch function  then it work correctly
    1) RemoveIf(imgList,img = Blank());
    brother Kindly remove the blank records from collection. by using below formula then update the order by using patch function  then it work correctly1) RemoveIf(imgList,img = Blank());

     

     

  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    haha spoiler, love it

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard