Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How can I get my edit form to function as I expect?

(1) ShareShare
ReportReport
Posted on by 821 Super User 2025 Season 1
I have asked this before but I am at a point where I've made some many changes that I am completely lost. I figured I'd start over. Here is the scenario and how I have implemented. Does this make sense?
 
  1. I have a gallery that returns the values of a Dataverse table. 
  2. Next to this gallery is a form to view all of the fields for each record.
  3.  When you click on a record in the gallery the record gets written to a global variable. NOTE: I am using a global variable because there is a copy record function where the record, in the global variable, is used to populate the original edit form.
  4. The form's Item property is set to the global variable. 
  5. Each DataCard has a Default of ThisItem.'FieldName' 
  6. Each field has a DefaultSelectedItems like this {dk_fullname: Parent.Default}, in the case of combo boxes, or Parent.Default in the case of text input fields
I think this all generally works fine. Maybe this is not the best way to do this so I am open to suggestions. 
 
 
  • futr_vision Profile Picture
    821 Super User 2025 Season 1 on at
    How can I get my edit form to function as I expect?
    Glad that this a good approach. I am running into issues with dependent combo boxes involving a gallery and a form in edit mode but that is for another post.
  • Verified answer
    timl Profile Picture
    34,933 Super User 2025 Season 1 on at
    How can I get my edit form to function as I expect?
    Hi  futr_vision 
     
    This looks completely fine. 
     
    The only minor comment I would make is that if there's no need for you to access the variable outside of the screen, an alternative is to use a context variable instead of a global variable. 
  • Verified answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    How can I get my edit form to function as I expect?
     
    Yes this totally makes sense and sounds like a good way of doing it. Plus, you're not experiencing any issues with this method which is the best thing.
     
    Kind regards, 
    Nandit
     
     

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard