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 / Open form from a Gallery
Power Apps
Answered

Open form from a Gallery

(0) ShareShare
ReportReport
Posted on by 85

My PowerApp is built in a 1 to many fashion where the "Intake Request" is the main record with "Assessments", "Tasks", and "Notes" as the many records connected to the main Intake Request. I have created a screen "Intake Assessment Work Q" that pulls All assessments into the gallery that are not complete. The first (next icon) opens the assessment form up correctly so the user can modify the assessment.

First Icon works...

mkAveraHealth_0-1673034604814.png

 

The problem I am having is creating another (next icon)  to open up the Intake Request record incase the user needs to see the original request with additional information. 

mkAveraHealth_1-1673034677829.png

 

Categories:
  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    Hi @mkAveraHealth ,

    What exactly are you trying to do with this

    Set(’Intake Requests’ ,varRecord, ThisItem)

    normally it would be

    Set(varRecord, ThisItem)

    to set the (record) Variable to the current item in the Gallery. You would then have the Item of the Form you are opening as

    LookUp(
     Tasks,
     ID = varRecord.ID
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • mkAveraHealth Profile Picture
    85 on at

    I want the user to be able to open the Request as a form.  

    mkAveraHealth_0-1673035690266.png

     

  • mkAveraHealth Profile Picture
    85 on at

    The Item of my form is set to varRecord...

    mkAveraHealth_0-1673036155704.png

     

  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @mkAveraHealth ,

    Did you try the Item code I posted ? I am not sure Tasks is the list - replace if incorrect.

  • mkAveraHealth Profile Picture
    85 on at

    Yes I did. No go. 

    mkAveraHealth_0-1673041830384.png

    mkAveraHealth_1-1673041925246.png

     

    When the form opens up, it doesn't display any record. It's blank. 

  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @mkAveraHealth ,

    That has to work if varRecord contains the record from 'Intake Requests' you are after. How do you set varRecord and if on a Gallery, what are the Items of the gallery ?

  • mkAveraHealth Profile Picture
    85 on at

    varRecord is set on a Gallery and the items in the gallery is Intake Request information from the Intake Request datasource. 

    mkAveraHealth_0-1673043134737.png

    I want to be able to open the Request Form from my Assessment gallery.

    mkAveraHealth_1-1673043423700.png

     

  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @mkAveraHealth ,

    What is the DataSource of that Form ? If it is "Intake Request" and you are setting varRecord on a gallery directly linked to 'Intake Request', (can you please post the actual Items) then the Item of the Form I posted has to work. If you put a Label with ThisItem.ID in the Gallery, do you see the ID of the record ?

  • mkAveraHealth Profile Picture
    85 on at

    The data source is Request Assessment. In that gallery I am setting varAssessmentItem (Ref ID). 

    mkAveraHealth_0-1673053353695.png

    The Request column comes from the Intake Request data source with ID. The first icon works as intended and it pulls up the assessment but the second icon next to the Request, I would like it to open up the Request Form that is associated to this assessment. 

    mkAveraHealth_1-1673053566247.png

     

  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @mkAveraHealth ,

    OK - your Gallery Data Source is 'Risk Assessment' which is a child list to 'Intake Requests'  - what is the "linking" field name in Risk Assessment'  that identifies it Parent record in 'Intake Requests'  ? If for instance you had a field called RefID in 'Risk Assessment'  which was the ID of the parent in 'Intake Requests' , then the Item of your Form would be 

    LookUp(
     'Intake Requests',
     ID = varAssessmentItem.RefID
    )

    This is easily solvable - I just need to know how to refer to the record in Intake Requests' 

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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