web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help with populating f...
Power Apps
Unanswered

Help with populating form based on gallery selection

(0) ShareShare
ReportReport
Posted on by

Hi all, 

 

I am trying to build an app where on Screen1 items from a SP list are shown in a gallery, user clicks a Sign Up button for one and is taken to Screen2 which is a form, some fields of the form should be pre-populated based on the gallery selection, then the user inputs their name and email and this is then saved to a separate SP list. 

 

I am having a weird stuck point where it seems like it's working to pre-populate the form fields when using the alt-click testing method within the editor without the app full screen, but if I make it full screen (or publish the app and try it via the app link), Screen2 is giving me a "No item to display" error when selecting the gallery item on Screen1. I've attached a gif screen recording of the behavior. 

 

For the gallery button, I am using:

Select(Parent); Navigate(Screen2,ScreenTransition.Fade); 

 

 Maybe that isn't the right way to do this? Any advice is appreciated!

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @Anonymous 

    Put this on your button instead

     

    Set( vRecord, ThisItem);
    
    Navigate(Screen2,ScreenTransition.Fade); 

     

    Then set the Item property of your Form to vRecord.

     

     

    EDIT: The above assumes that your Form is in the default Edit Mode.

  • Community Power Platform Member Profile Picture
    on at

    Thanks @Anonymous this got me moving forward! After I tried your suggestion I started thinking I wonder if part of my problem was I forgot to set the form edit mode to NEW, since the end result on the second list involved would not exist until Screen2 has a name and email entered and submitted. I imagine that would throw some error since the form is pointing to a list where the item doesn't exist yet. 

     

    Regardless, I'm making progress again thanks to your suggestion. 

  • Community Power Platform Member Profile Picture
    on at

    @Anonymous 

    Yes, you are correct. 

     

    There are two main modes for forms; New & Edit. New is used to add a new record to a data source and Edit is used to view/update an existing record. If the record doesn't exist yet then Edit mode won't return anything, as you say.

     

    Great to see you are working through these things and making progress 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard