Skip to main content
Community site session details

Community site session details

Session Id : QoERZV4SzZJNkGq/xngvEh
Power Apps - Building Power Apps
Answered

2 Edit Forms On 1 Screen - Combining Data

Like (0) ShareShare
ReportReport
Posted on 27 Feb 2021 15:52:49 by 56

Hi All,

I have a 'Request Submission'-type PowerApp with a basic home screen (screenHome) / gallery and button to submit a new request which navigates to "screenNewReq".

On screenNewReq is an Edit Form (frmNewReqMain) where they populate the necessary data points. Upon completion, they click the "Submit Request" button which uses SubmitForm to post the data to a SharePoint list.

On this same screen, I have a paperclip icon which brings up a pseudo-popup screen:

PowerApp_Attachment_Popup_Example.jpg

 

This isn't actually a different screen - just a rectangle that's formatted to look like a pop-up (the OnSelect for the paperclip icon sets a contextual variable to "true" which makes it visible).

On this "popup screen" is a separate Edit Form (frmNewReqScreenshot) which contains 1 Attachment Control and nothing else. The control is tied to an attachment field on the same SharePoint list as the fields on the main form (frmNewReqMain). 

I'm trying to combine the data from both forms - frmNewReqMain and frmNewReqScreenshot - prior to the form submission. I know I could probably add a button to the "popup screen" and set the OnSelect for that button to Patch the attached file to the respective attachment field on the SharePoint list, but it seems a bit like using a sledgehammer to crack open a nut. Obviously another route would be to simply get rid of the "popup" and just add the attachment control/field to frmNewReqMain, but for the sake of this app/form, I prefer the experience of clicking on the attachment icon (paperclip) and then displaying my phony popup screen. 

 

I'm sure there's a blindingly obvious solution, but I seem to be stumped at the moment. 😕

 

Thanks! 

Categories:
  • bcanfield83 Profile Picture
    56 on 28 Feb 2021 at 13:58:13
    Re: 2 Edit Forms On 1 Screen - Combining Data

    Thanks! I think I was hung up on having 2 separate forms but there was really no need for it. 

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on 27 Feb 2021 at 17:46:40
    Re: 2 Edit Forms On 1 Screen - Combining Data

    @bcanfield83 

    What if you keep the attachment field in the form but hide the card until you press the paperclip. If your context variable was vis, then set the card values of all the other screens to !vis and put the context variable in the OnVisible property of the screen so that all of the cards are seen by default. I think that by hiding the other cards, the effect would be the same as your pop up. 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete