Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

dropdown column depends on another dropdown

(0) ShareShare
ReportReport
Posted on by

i have 2 columns in sharepoint

1st column contains  2 choices :  Software, Hardware

2st column contains 3 choices :  Pending,Approved,N/A

 

when user select dropdown as Hardware ,then 2nd dropdown should show value automatically as N/A.

how to write code in 2nd dropdown with if condition?

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: dropdown column depends on another dropdown

    Hi @venky232 ,

     

    It seems that you are using combo box control rather than dropdown control.

    If these 2 choice column are all not allowed multiple selections, I did a sample for you.

    vxiaochenmsft_0-1661324321479.png

    vxiaochenmsft_1-1661324339028.png

    vxiaochenmsft_2-1661324355523.png

    If(ComboBox1.Selected.Value = "Hardware",LookUp(Choices(LIST269.Choice2),Value="N/A"))

     

    Best Regards,

    Wearsky

  • venky232 Profile Picture
    on at
    Re: dropdown column depends on another dropdown

    not working ,i added code in default properties of dropdown  & also in Default selected items.

    showing below error

    Issue
    Expected Record value.
    The property on this control expects Record
    values. The rule produces Text values which are
    incompatible.
    Location
    DataCardVaIue8
    . Default
    Haw to fix
    Change the rule to produce a {0} value.

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at
    Re: dropdown column depends on another dropdown

    @venky232 On your second DropDown add this in the Default property

     

    If(Dropdown5.Selected.Value = "Hardware","N/A")

     

    Change Dropddown5 with the name of your first Dropdown.

    Is this what you are looking for?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard