Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

(0) ShareShare
ReportReport
Posted on by 10

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

coffee_fan_0-1660827856720.png

 

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.

 

 

  • LY-25071853-0 Profile Picture
    10 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    Thanks so much for your quick response JR-BejeweledOne, but the default property does not work out for me. I guess my situation is a bit complex, where all three fields are dependent selection field where the selection value is not coming directly from SP list, but from my Mapping tables. Hence I was using Update property for all dependent card and concat value at submission so it's not showing as missing/blank on SP list. Given this action, it mess up the value captured in the field and when retrieve existing record, the field is actually displaying a string of concat value but tags values of selections... So when clicking on Save again without change, some sort of conflict result in parent error and triggered the message and prevent submission of form....

     

  • JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    In forms, the default value is typically set to Parent.Default.  This gives you the value of the field in your SharePoint list.

     

    When you want to reference that value, you should use Parent.Default.   There are a couple different ways you can do this.

     

    Try this:   Set the default value of DataCardValueX to your dropdown.   DDxxx.Selected.xxx

     

    Then set your dd default value like this (If this is a combobox, use the DefaultSelectedItems property):

     

    If(
     SharePointForm1.Mode <> FormMode.New, Parent.Default
    ) 

     

    This will set the value of the dropdown to the saved value if the form is in View or Edit mode and should leave it blank if the form is in New mode.

     

     

  • LY-25071853-0 Profile Picture
    10 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    I got both error for formula when adjust the Data Card(dropdown) Default and the datacardvalue default. Also for the data card default I have ThisItem.XX in default. but the datacardvalue default is blank

  • LY-25071853-0 Profile Picture
    10 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    I got both error for formula when adjust the Data Card(dropdown) Default and the datacardvalue default. Also for the data card default I have ThisItem.XX in default. but the datacardvalue default is blank

  • JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    It has to do with the required value.   I can see that in the error message. 

     

    Your default formula for that DataCardValue should look something like this.

     

    If(
    SharePointForm1.Mode = FormMode.View, Parent.Default,
    DDXXX.Selected.Value
    )

     

    The default value of your dropdown should also look something like this:

    If(
    !(SharePointForm1.Mode = FormMode.New), Parent.Default
    
    )

     

  • LY-25071853-0 Profile Picture
    10 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    I did not set the Default property of the value, thats blank, is that the reason? What should I set it for then?

  • LY-25071853-0 Profile Picture
    10 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    yes, those fields are required. But he error message is populating when I opened an submitted request and try to update it and the resubmit it (the update is not touching the required fields which already have values) and the error message persist showing while the filed required is Not Empty

  • JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Error Message Label setup for fields that source from dependency mapping table for Customize SharePoint Form

    Your form fields appear to be required.   If you are trying to submit the form and the default fields in the data card are empty, you will get an error.  

     

    Did you set the Default property for the DataCardValueX to the value of the dropdown?   

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard