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 / Preview Gallery Image ...
Power Apps
Answered

Preview Gallery Image from Form

(0) ShareShare
ReportReport
Posted on by 70

Hi,

 

I have two different screen, 1st is detail screen by using Form to preview all fields from Sharepoint. 2nd screen to preview image that attached in each item of Sharepoint.

There is one indicator in 1st to let me know whethere item has attachment or not. if it has [On], click [Attachment] to preview attachment at 2nd screen. I am finding formular to preview 2nd screen from 1st scree. please help..

1st screen:

first screen.png

by clicking on Attachment textbox, it will preview attachment at 2nd screen

second screen.png

Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @ratanapouy,

     

    Could you please share a bit more about the first screen (Detail Screen) that you mentioned within your app?

    Further, could you please show a bit more about the formula within Items property of the Display form of your Detail screen?

     

    I have made a test on my side, please take a try with the following workaround:

    5.JPG6.JPG7.JPG

     

    Within Gallery screen (Screen1):

     

    set Items property of the Gallery control (Gallery1) to my SP list data source. Set OnSelect property of Navigate button to following formula:

    Navigate(Screen2,ScreenTransition.Fade)

    Within Detail Screen (Screen2):

     

    Set Item property of the Display form control to following formula:

    Gallery1.Selected

    Set OnSelect property of the "Has Attachments" Label control (On your side, it is "Attachment") to following formula:

    If(Gallery1.Selected.'{HasAttachments}'=true,Navigate(Screen3,ScreenTransition.Fade))

    Within Attachments Preview screen (Screen3):

     

    Set Items property of the Gallery control (Gallery2) to following formula:

    Gallery1.Selected.'{Attachments}'

    Set the Image property of the Image control within the Gallery control (Gallery2) to following formula:

    ThisItem.AbsoluteUri

     

    If you could provide more details about your scenario, we would provided a proper workaround for you.

     

    Best regards,

    Kris

     

  • Nena Profile Picture
    25 on at

    Hi

    I used the 

    ThisItem.AbsoluteUri

    but it does not work on my Powerapps,  I am trying to preview my image on the SP List customized form

    Thanks 

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard