web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Default value in editf...
Power Apps
Unanswered

Default value in editform not updating

(0) ShareShare
ReportReport
Posted on by 80

Hi all,

 

I have two galleries of records where in each you have identical edit forms. The first allows some initial changes to a record, then if the records meet some criteria it is then visible in the second gallery to make additional edits.

 

The first edit form is working as intended, it is updating the underlying SP list, and if you edit the record within that gallery, you can see your fields update.

 

In the second edit form, if I make edits in the fields and hit submit, I can see the SP list gets updated, but when I open that record in the edit form, the changes in the fields aren't displayed. The previous value for the field is displayed.

 

I'm a bit confused as both edit forms are set up the same, with the same properties on each field.

 

Does the default property have to be set differently on the data cards and/or fields?

 

Cheers

K

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @Kambro ,

     

    Indeed you may have to make some adjustments to the Default properties of the data cards. Can you please share what you have now?

  • Kambro Profile Picture
    80 on at

    Hi @BCBuizer ,

     

    I've got a bunch of fields but a few examples are as below:

     

    Same datacard/fields in both edit forms but named differently. If I update this value in the first edit form, submit and then edit again in the same gallery, the value displayed in the edit form updates. In the second edit form the field displayed does not update after submitting and entering the edit form:

     

    Datacard: DETAILS

    Card Default: ThisItem.DETAILS

    Field default: ThisItem.DETAILS

    Type: text field

     

    Datacard: CLASS

    CArd default: ThisItem.CLASS

    Field default: {EXPDESC:ThisItem.CLASS}

    Type: Combobox

     

    When one of the fields is updated in the second edit form and is pushed into the first gallery, the field reflects the update.

     

    Cheers

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @Kambro ,

     

    This seems ok, perhaps try changing the CLASS data card Default to just Parent.Default 

     

    Can you also share the Item property of the form that does not show the updates?

  • Kambro Profile Picture
    80 on at

    Hi @BCBuizer ,

     

    If I change the default property on the CLASS card it throws an error that the control expects a table value but Parent.Default produces a text value. Its a combo box so I assume that's why it doesn't work?

     

    The item property on the form that isn't showing updates is:

    TxnsToClassify_1.Selected

     

    The gallery it is connected to is TxnsToClassify.

     

     

  • Kambro Profile Picture
    80 on at

    I've found the issue - in the gallery the OnSelect property had a ResetForm line in there. When I remove that, the updates in the edit form show.

     

    Could removing this property cause some other problems? 

    Edited to add: When I make updates in the second edit form and submit, the filtering in the gallery now doesn't update as it was previously. If the record was updated to no longer meet the filter criteria, it stays in the gallery until I navigate to the duplicate gallery and back into the problematic gallery.

     

    I inherited this app from someone else, so didn't realise what this property was doing. Interestingly, this property also exists in the first edit form that does show the field updates, so not sure why the behaviour is different between the two forms?

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @Kambro ,

     

    Sometimes these things just seem to happen, but glad you got it sorted.

     

    For the issue with the Gallery, I suggest to try and reset it in the EditForm's OnSuccess property.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard