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 Apps
Unanswered

Default value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

 

I am trying to figure out how to set a default value of a dropdown field based on the value selected from another dropdown field. My data is coming from a SharePoint list, one choice column is called 'Employee Type' (Selectable Options: Direct Employee or Contractor) and another choice column is called 'Job Level' (Selectable Options" 1, 2, 3, 4, 5, 6, Undefined).

 

What I was envisioning is that when someone selects 'Contractor' in the Employee Type field, the default value on the Job Level field would be 'Undefined', if they were to select Direct Employee, then they will be able to choose from all the options in the Job Level field. 

 

I have been trying with a IF formula: If(DataCardValue262.Selected.Value= "Contractor" , "Undefined", Parent.Default)

 

But getting an error message: Invalid argument type (Record). Expecting a Text value instead.

 

Any thoughts?

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @lroi7 

    Assuming these are Dropdowns and not Comboboxes first off...

     

    Next question is, what is the underlying field type of the datacard that this dropdown is contained in?  If it is a choice column, then you need to adjust your formula to retrieve the .Value of the default.

    In general, you would put this formula in the Default property of the DataCard and not in the Dropdown control as working with Parent.Default directly in the control can be problematic.

    You seemed to indicate that you were putting this into the Default for the dropdown control.

     

    I hope this is helpful for you.

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard