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 Apps
Answered

Form within a Form

(0) ShareShare
ReportReport
Posted on by 13

I have two data sources, Commissions and Tasks (1:Many) which are linked by the Commission ID.

 

On the app I have a gallery (CommissionGallery) showing a list all of the commissions, and then a form (CommissionForm) next to it which users can view/edit the commission.

Commission is split into 4 sections, one of those sections is "Tasks" and within that section I've got another gallery (TaskGallery) showing a list of the tasks for the selected Commission in CommissionGallery (shown in the first image)

 

That part is all working perfectly, having the tasks in CommissionForm means I can have the sections be collapsible instead of showing the tasks on a different screen/visible property set to show on a button etc.

 

Problem: I want to be able to view/edit the full task details in a pop-up window which includes another form (TaskForm) (see the second image). I have the item property set as TaskGallery.Selected, which works when TaskGallery is not contained within a form, but when its within CommissionForm the popup (TaskForm) shows "No item to display" when its in live mode or just blank in studio, except for the Commission ID.

 

I assume there's too many form from a gallery within another form coming from another gallery problems.

 

Apologies for the annoying blocks, hopefully it still makes sense

GeeBee185_0-1706114025507.png

GeeBee185_1-1706114414352.png

 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    @GeeBee185 

    The solution to this is to set the Item property of TaskForm to a variable (eg, varSelectedTask).

    You can then set this variable in the OnSelect property of the galleries that open TaskForm.

    Set(varSelectedTask, ThisItem)
  • GeeBee185 Profile Picture
    13 on at

    Thank you so much, I can't believe the answer was so simple but at the same time I would never have thought of that.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard