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 / Form not showing value...
Power Apps
Answered

Form not showing values selected in Gallery

(0) ShareShare
ReportReport
Posted on by 611

My form isn't showing the values that were selected in the gallery:

 

Gallery- Gallery_Main

NextArrow1 OnSelect:  Set(varFormMode,"edit"); Set(varRecord,ThisItem); ResetForm(Form1); Navigate(scrForm1,ScreenTransition.None)

 

Form1:

OnSuccess: Set(varRecord,Form1.LastSubmit);Navigate(scrForm2_EQRAttach,ScreenTransition.None)

DefaultMode: If(varFormMode="edit",FormMode.Edit,varFormMode="view",FormMode.View,FormMode.New)

Item: varRecord

 

OppAccount_DataCard2

Default: ThisItem.OppAccount

Update: OppAccount_DataCardValue.Selected.Result

Dropdown -

OppAccount_DataCardValue

OnSelect: false

OnChange: false

Items: Distinct(Sort('[dbo].[vps_App_PAFNewProj_OneView]'.Account, Account), Account)

Value: Result

Default: Parent.Default

Reset: false

EmptySelection: true

 

Do you know what I could be doing wrong?

 

Categories:
I have the same question (0)
  • Rahber Profile Picture
    1,935 on at

    What is the DataSource of your Form?

    It should be the same Datasource as of your gallery.

     

    Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

    Thanks,

    Rahber

  • TesDA Profile Picture
    611 on at
    The datasources are the same
  • BenFetters Profile Picture
    on at

    Some thing to try could be adding a few labels that show varRecord information to make sure the record is being set (for example: varRecord.Title , or whatever other field if you don't have a "Title" field). You could also make sure the form is in the correct mode after you set the varFormMode variable. 

     

    Also, when do you not see the data? When you click on the item in the gallery, after the form is submitted, or both? 

     

    I tested a similar situation and it seems like your logic should work, I'm thinking it's something small or perhaps you could try deleting the form and re-adding it?

     

    Let me know if any of this didn't make sense or if it's still not working!

     

    Kind regards,


    Ben Fetters

    www.sovereignsp.com

  • TesDA Profile Picture
    611 on at

    @BenFetters I think you're on to something. I havent tried deleting the form yet... I created labels using ThisItem.ID and ThisItem.OppAccount - The ID for that row is showing correctly however the data for the blank OppAccount is not showing which is really odd. I checked in SQL Server and the data is definitely there. In the gallery ThisItem.OppAccount is showing the correct data. The mode is correctly in edit.

     

    I'm not seeing the data when you click on the item in the gallery, after the form is submitted

  • Verified answer
    BenFetters Profile Picture
    on at

    Oh okay, that is interesting! Putting some labels in the app always seems to help somewhat haha. I think I need to understand the situation a little bit more though. As far as I understand, you're clicking on an item in the gallery, navigating to a different screen, and then seeing a form that's in edit mode, but it's not showing the data of the item you clicked on in the gallery right? What happens when you set the item property of the form to Gallery_main.Selected?

  • TesDA Profile Picture
    611 on at

    For posterity, I had to add an if statement so that if its in a new FormMode it still pulls up varRecord

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard