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 / Form Controls Entered ...
Power Apps
Answered

Form Controls Entered Data Disappeared

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Dear, 

I am building a form contain a Gallery, the gallery Items from a Collection. I am trying to create a table format entry form.

I used a save button to enter each row in the Gallery to the Collection as in the following lines: 

 

Patch(
 IndecatorsCollection,
 ThisItem,
 {
 piProjectCode: ProjectCode.Text,
 piIndecators: cbIndecators.Selected.indicatorENName,
 piPlannedTarget: Value(tiPlannedTarget.Text),
 piMoV: tiMoVs.Text,
 piAssuamption: tiAssumptions.Text,
 piRisk: tiRisk.Text
 }
);
Collect(
 IndecatorsCollection,
 {
 piProjectCode: "",
 piIndecators: "",
 piPlannedTarget: 0,
 piMoV: "",
 piAssuamption: "",
 piRisk: ""
 }
)

 

Every time I enter a new row the data stored in the Collection but the data disappeared from the controls (as you see in the photo).

mashabo_0-1603968895901.png

 

Thanks for your support in advance!

Best Regards

Mahmoud

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you everyone, I fix it. Here is the solution I used. 

    Patch(
     IndecatorsCollection,
     Defaults(IndecatorsCollection),
     {
     piProjectCode: varProjectCode,
     piIndecators: cbIndecators.Selected.indicatorENName,
     piPlannedTarget: Value(tiPlannedTarget.Text),
     piMoV: tiMoVs.Text,
     piAssuamption: tiAssumptions.Text,
     piRisk: tiRisk.Text
     }
    )

    Best Regards

    Mahmoud 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard