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 / Depending on which gal...
Power Apps
Unanswered

Depending on which gallery I use to select an item, a field on my form will not populate.

(0) ShareShare
ReportReport
Posted on by 4

In my model, Actions (Table 3) are assigned to Events (Table 2), which are assigned to Suppliers (Table 1).

 

I have a HomeScreen in my app with a gallery for users to select actions in their name.

I also have an EventScreen (selected via HomeScreen) where a user can view actions, regardless of ownership, assigned to the selected event.

 

I have a variable which is set OnVisible of HomeScreen:

Set(varScreenSelected,0)

and of EventScreen:

Set(varScreenSelected,1)

 

The OnSelect property for both galleries is:

Navigate(ActionScreen)

 

The Item property for the ActionForm is:

If(varScreenSelected=0,HomeActionGallery.Selected,EventActionGallery.Selected)

 

My problem is:

When I view an action via the gallery in the HomeScreen, the ActionDescription field does not populate or returns '[object Object]' (this happens rarely). However, when I view an action via the gallery in the EventScreen, the ActionDescription field always populates with the correct text.

 

I am at a loss here and have tested all of my variables in case they had something to do with it but no.

 

I feel like I may be missing something blatantly obvious.

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @rkelsey 

     

    Please let me know your Datasource for the Form. Looks like you are trying to show data from 2 different tables. In this case, either we need to have 2 different forms on the same screen or different screens with a different form.

     

    1. If both forms are on different screens, we can navigate to different screens based on the condition
    2. If both forms are on the same screen, then visible one form and disable other forms.

    Option 1 is an easy to control option.


    Thanks,
    Stalin - Learn To Illuminate

     

     

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard