Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Form fields not populated when showing them

(2) ShareShare
ReportReport
Posted on by 33
I have an app where you would select an item from a gallery and navigate to the Form Screen.
In this screen, the Form doesn't have all the fields visible, it's divided into cards and depending on what card you select, some fields hide and others show.
The problem comes up the first time you access that screen, because it loads the fields for the first card, but the required fields for the other cards are not visible, though the relative item field value is populated on the data source (Dataverse, in this case), and this, when you submit the form, can make the error "An entry is required or has an invalid value" pop up like one of them is blank, but it's not like this.
 
 
then, when clicking on the second card to show the relative fields, first it comes up blank like this
 
then, after one or two seconds, it loads the values
 
Would it be better to use a multistep form or maybe more forms? Like one for each card on the screen?
 
Thank you all in advance
Categories:
  • JonEffe Profile Picture
    33 on at
    Form fields not populated when showing them
    @MichaelEGearney I pass a global record variable loaded with the record selected in the gallery from the previous screen, and that's even weirder, since I thought the form should have all the information needed without having to connect to Dataverse once again to get the info
  • Michael E. Gernaey Profile Picture
    42,048 Super User 2025 Season 1 on at
    Form fields not populated when showing them
     
    I guess.. what I find a little weird is, why it doesn't give you that error every time. You said its only the first time. But doesn't whats in the first card, drive what gets selected in the secondary/next cards? Which means they should always be reset(blank) until the first card is populated.
     
    So are you... saving the first set of cards, then the 2nd set comes alive, and so forth? as in the Default/DefaultSelecteitems etc are set, only once something is in the 1st, which is why they are "giving the error"
     
    This error... is odd because I wouldn't expect it until you tried to submit.
     
    How are you loading the Data? Just passing a global variable?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard