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 / How to keep values in ...
Power Apps
Unanswered

How to keep values in Editform when editing an entry

(0) ShareShare
ReportReport
Posted on by 4

Hi, 
I have created an Inventory app. I have an EditForm Edit screen to edit entries from My SharePoint list. In my app, the SharePoint list is viewed with a vertical gallery, when selecting an entry, it goes into the details screen, you can then tap the Edit icon to go into the Edit screen and edit those details. You can also add new entries. I have 2 issues. The form is functional, but:

  1. When editing an entry > Navigate(EditingScreen1) - The Datacard value of the current selection blanks out, this only occurs with Datacards with Comboboxes:
    • The ComboBox Item property is set to the dropdown choices. This is the formula:
      • ["Text1", "Text2", "Text3", etc.].
    • For this case, I'd like the Datacard to retrieve their information from the SharePoint List when entering the EditScreen. The SharePoint List columns are Single Line of Text type columns. How do you best set the Combobox property to retrieve the Single Line of Text data and be able to show all values in the drop-down selection?

  2. I have the same issue for the Datacard with a Barcode Reader, but in this case, when going to the EditScreen, the Datacard resets with the last value the Barcode Reader reads. I want the Datacard to retrieve data from the SharePoint list while having the ability to Scan and enter a new value. The formula I have for the Datacard with Barcode Reader button:
    • Barcode Reader -
      • OnScan property:  Set(VarBarcode,FirstN(Self.Barcodes))
    • DatacardValue -
      • Default property: First(BarcodeReader1.Barcodes).Value
    • The SharePoint list column type is Single Line of Text. 

Any way to make this functional? Let me know if I'm not clear with my explanation above.

fsabatier_2-1692555619056.pngfsabatier_1-1692555599810.pngfsabatier_0-1692555577128.png

 

Categories:
I have the same question (0)
  • hasnainhaider68 Profile Picture
    47 on at

    It sounds like you're encountering a couple of issues related to data binding and default values in PowerApps when working with SharePoint lists and forms

    Combobox Data Binding in Edit Form

    You want to populate the ComboBox in an EditForm with values from a SharePoint list column that contains single-line text. To achieve this, you need to set the ComboBox's Items property to the values from your SharePoint list.

    Here's how you can do that:

    1. Select the ComboBox control inside your EditForm on the Edit screen.

    2. In the formula bar, set the Items property of the ComboBox to your SharePoint list column. If your SharePoint list is called "MyList" and the column is called "MyColumn", the formula would be:
      Items = MyList.MyColumn

    3. Additionally, make sure to set the DefaultSelectedItems property of the ComboBox to the value you want pre-selected when you're editing an existing item. If the selected item's value is stored in a variable called SelectedValue, the formula would be:
      DefaultSelectedItems = LookUp(ComboBox.Items, Value = SelectedValue) 
  • WorkingRicardo Profile Picture
    818 on at

    Hey  @fsabatier @hasnainhaider68 was there ever a solution to this? I'm having the same problem, (comboboxes going blank when you go to edit them in sharepont). Altough I only have one scree set up for my app, so when you are editing it uses the same one you would use for creating new entries

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 765 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 272

Last 30 days Overall leaderboard