Hi,
I'm a newbie for PowerApps and not hard core developer but an analyst with some coding skills. Instead of building a standalone application with SharePoint form from scratch, I went the easy way of using "Integrate - Power Apps - Customize Forms". Now I'm hitting a blocker to resolve the error I have below.
What I try to build:
I have fields that the selection list shall based on other fields selection, and I have loaded a 2nd source of excel where I have 3 mapping tables to use, A-B mapping, B-C mapping, B-D mapping
- A is single selection, B is multi selection, C is single selection, D is single selection
- I have leverage Item property for B, C, D and fulfilled the dependency sample code as:
If(DataCardValue28.Selected.Value = Blank(), A-B Mapping.B,Filter(A-B Mapping, 'A' = DataCardValue28.Selected.Value))
If(DataCardValue1.Selected.Value = Blank(),Distinct(B-C Mapping,'C'),Distinct(Filter(B-C Mapping, B in Concat(DataCardValue1.SelectedItems,Value,",")),'C'))
- I had issue where the form process fine and allow submission, but when I see the SharePoint list for the record submitted, it was having issue and all 3 dependent selection fields are showing blank value submitted.
- Then I found there are suggestion to use Update property for the 3 fields so it ensure value from other source configured through into SharePoint list and it worked, sample code as:
If(Not(IsBlank(DataCardValue1.Selected.Value)),{Value: Concat(DataCardValue1.SelectedItems,B,";#")})
- Now the real issue is around the ErrorMessage for the 3 datacard. For any submitted SharePoint record, when I try to edit/update the record for other fields excluding the 3 dependent fields and submit the update by clicking Save, my Save button have OnSelect = SubmitForm(SharePointForm1). The form is preventing me from submission and throwing error message stating for all 3 dependent fields, even though I already have value selected as this was submitted before. Sample screen

Hope the entire background of issue is not overwhelming. I tend to provide as much information as possible to increase efficiency. And pardon me to blur the form just in case, but hope its clear enough for illustration.