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 / PDFViewer conditional ...
Power Apps
Unanswered

PDFViewer conditional view

(0) ShareShare
ReportReport
Posted on by 10

I have an application that shows the PDF documents that are in a SharePoint directory, showing their titles and clicking on the title allows you to view them with PDF Viewer.


However, there are times when there are no PDF documents to view in a folder and you see the window in gray as I show in the photo.


This causes confusion for the user, since they believe that the titles are not loading.


How can I only display the PDF viewer container if there is a PDF document title to display?

 

Example screen without documents to see:

SoporteSM_0-1715166709046.png

 

Example screen with a document to see:

SoporteSM_1-1715166873344.png

 

 

Categories:
I have the same question (0)
  • Daniel Bocklandt Profile Picture
    5,119 Super User 2026 Season 1 on at

    You could use the visible property.
    I see you are using a gallery for at least the Titlenames.

    //Visible property of PDF Container
    
    !IsEmpty(DataSourceOfGallery)

     

    Where i put DataSourceOfGallery you need to put the DataSource that you also put into your Gallery since you probably used a collection or filters to only get the Documents necessary. 

     

    You could also replace this container with an Image or something that states No Documents available. Like this there won't be any misunderstanding. 

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard