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 / Power apps with multip...
Power Apps
Answered

Power apps with multiple screens and forms

(0) ShareShare
ReportReport
Posted on by 60

I have a app with Form A, B, C . In the gallery when I am editing the record only Form A shows the record data but Form B and C shows blank.

Form A working fine-

action1_1-1686116673543.png

 

Form B 

action1_0-1686116620641.png

While viewing the data I can see the values of all Form A, B and C-

action1_2-1686116739387.png

 Please help.

 

 

Categories:
  • NZ0090 Profile Picture
    317 on at

    Hi @action1 ,

     

    What's the value inside Default property of your datacards in Form B and C?

  • action1 Profile Picture
    60 on at

    Hi @NZ0090 ,

     

    Default property for both the form datacards in Form B and C is blank.

     

  • Verified answer
    NZ0090 Profile Picture
    317 on at

    @action1 

    On the Default property of the datacards, you can add 

     

    GalleryName.Selected.FieldName

     

     

    So for Site Name for example, write the code below inside the Default property of Site Name datacard: 

     

    GalleryName.Selected.SiteName

     

     

    Alternatively, you can also store the primary key value by using a variable on the OnSelect property of the gallery. This value can then be used with LookUp function inside your datacards Default property.

  • action1 Profile Picture
    60 on at

    Thank you so much @NZ0090 , it worked like a charm.

  • action1 Profile Picture
    60 on at

    But now on adding a new item as well Form B and C shows the form with values. I want a blank form. On form A next button I am using -

    ResetForm(FormB);
    Navigate(Screen_2,ScreenTransition.Cover)

    Do I need to update the code?

  • Verified answer
    NZ0090 Profile Picture
    317 on at

    @action1 

    Usually what I would do is add a variable to differentiate between adding a new record and editing record.

     

    On the OnSelect property of your add button, you can add:

    Set(RecordType, "AddRecord")

     

     

    On the OnSelect property of your edit button, you can add:

     

    Set(RecordType, "EditRecord")

     

    In the Default property of your datacards, you can do something like this:

    If(Type="EditRecord", GalleryName.Selected.SiteName)

     

     

     

  • action1 Profile Picture
    60 on at

    Thank you @NZ0090 , its working perfectly for my scenario now.

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
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard