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 / Set Default for a Choi...
Power Apps
Answered

Set Default for a Choice DropDown

(0) ShareShare
ReportReport
Posted on by

Hi

 

I have two Choice DropDown from SharePoint List in my Powerapp form.

So if DropDown 1 select the value "Apple" I would like DropDown Default value to be 'fruit'.

I'm getting a syntax error. 

 

I tried to create as below on Default and also on DefaultSelectedItems too but still not been able to correct this. Pls let me know how to set for  dropdown box for Form 

 

If(DataCardValue30.Selected.Value="Apple","fruit",Parent.Default)

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @indhaa 

    If you have a DefaultSelectedItems property then you are dealing with a ComboBox, not a Dropdown.

     

    That said, on a Combobox, you must provide a record or a table (depending on the multiselect option).  That record must match the schema of the Items property records.

     

    What is your Items property for the Combobox?

  • indhaa Profile Picture
    on at

    Sorry I'm very new to this.  

     

    In my item it says this 

    indhaa_0-1617303262416.png

     

     

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @indhaa 

    No worries.  As mentioned, the combobox needs a record to match from the DefaultSelectedItems to the Items.

    So, in your case, on the DefaultSelectedItems you will want this formula:

     

    If(DataCardValue30.Selected.Value="Apple",
     {Value: "fruit"},
     Parent.Default
    )

     

    The Choices function you are using in the Items returns a Table with a single column called Value.  SO, in order to match anything, you need to provide a record with a single column called Value.

    The above formula will do that.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard