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 / How to set field defau...
Power Apps
Answered

How to set field default value based on another value

(0) ShareShare
ReportReport
Posted on by

Hi,

 

trying to set field default value based on another field value. 

 

Got 2 sharepoint columns. Both choice. And I want if I choose in field (column A) value "USZ", then in another field (column B) will pop out "US01"

 

Thanks.

Categories:
  • joeinmay Profile Picture
    205 on at

    Workaround:

    Insert a Button
    Button -> OnSelect ->
    ClearCollect(SPlist,{ChoiceA: "USZ",ChoiceB: "US01"},{ChoiceA: "USX",ChoiceB: "US02"},{ChoiceA: "USY",ChoiceB: "US03"})

     

    Insert Dropdown "DP1"
    DP1 -> Items -> SPlist.ChoiceA

     

    Insert Dropdown "DP2"
    DP2 -> Items -> SPlist.ChoiceB
    DP2 -> Default -> LookUp(SPlist,ChoiceA=DP1.Selected.ChoiceA,ChoiceB)

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @kyon84 ,

    Do you want to display a choice field value based on selection of another choice field?
    Could you tell me:

    1)what controls do you use to display these two fields?

    2)whether these two choice columns allow multiple selections?

    I assume that: you use drop down to display these two fields, these two choice field not allow multiple selections.

     

    If so, you could set like this:

    1)drop down1's Items:

    Choices(list1.column A)

    drop down1's OnSelect:

    Reset(dropdown2)

    2)drop down2's Items:

    Choices(list1.column B)

    drop down2's Default:

    If(
    dropdown1.Selected.Value="USZ",
    "US01"
    )

     

     

    Best regards,

  • rmodi Profile Picture
    6 on at

    Hello,

    How can we do this if dropdown 2 allows multiple selections and i want to set multiple values as default?

    Thanks

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yutliu-msft ,
    I have the same issue but in model driven power app. 
    I would like to show a location based on selected postcode. 
    Could you please provide me with your solution?

    Cheers,

  • mthompson Profile Picture
    43 on at

    Hello, I have one choice column User Type and a managed metadata column Distro List, if

    User Type = Employee then I want default value of Distro List to equal All Employees

    User Type = External then I want default value of Distro List to equal External User

    User Type = Guest then I want default value of Distro List to equal External User

    Items for Distro List is Choices([@'User Account Request Form'].'Distro List')

    Items for User Type is Choices([@'User Account Request Form'].'User Type')

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard