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 / Submit Edit form then ...
Power Apps
Unanswered

Submit Edit form then display submitted details on view form

(0) ShareShare
ReportReport
Posted on by 16

Hi,

I am building a app, where upon submitting edit form , display form is resetting to new data record instead of displaying the selected data from the data table.

 

As seen below, upon clicking submit form it should update the status and show me the updated status in display form but it is resetting to new record. Tried adding refresh button but it did not work. It would be great help if any one can advise how i can display the updated details in display form instead of new record from datasource uponsubmission.

 

display form Item = DataTable1.Selected

submit button on select : SubmitForm(Form4);UpdateContext({status:false}) --> upon submission edit form will disappeared using update context

 

Reset-submit.png

 

Regards,

Sharma

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @DSharma1 ,

     

    Could you please share more details about the forms? Do you want to display the selected record in Display Form which updated in the Edit Form?

     

    I made a test and it worked fine:

    forms.gif

     

    Both Edit Form and Display Form are with the Item property set to Gallery.selected. 

     

    Please try to remove and re-add the Display Form and Edit Form then set the Item property to DataTable1.Selected and see the result, if the problem persists, try to remove and re-add the data table.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • DSharma1 Profile Picture
    16 on at

    Hi @v-jefferni 

     

    Thanks for the response. I tried re-adding data-table and removal of forms still selected record resets to 1st row upon submitting the form. Looks like it is default behavior, there is no option within data table to change the default settings.

     

    Please see the step by step.

    Screen 1 : selected row

     

    Selectedrow.PNG

     

     

     

     

     

     

     

     

     

     

     

     

     

    Step 2: upon selecting the record it will navigate to screen 2 and show the selected record in display form.

     

    Step2.PNG

     

    Step3: Upon clicking update status, edit form will be displayed . I can update the status and submit the form. As soon the status is updated , display record changes to 1st row of the data-table.

     

    step3.PNG

     

     

     

     

     

     

     

     

    step4.PNG

  • DSharma1 Profile Picture
    16 on at

    As a workaround, i have implemented the date sorting(by column) in my datatable in descending order. So whenever the status is updated the first record in the datatable would be always the updated record. hence display form always shows the updated record.

     

     

    Thanks again.

    Sharma

  • v-jefferni Profile Picture
    on at

    Hi @DSharma1 ,

     

    Please check if all those OnSelect properties of the Gallery Items been set to Select(Parent). If not, correct it.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • sarab426 Profile Picture
    2 on at

    Hi, I have the same issue, may I know how did you apply the date sorting so that always last updated record is shown instead of first record?

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard