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 / Dropdown box default v...
Power Apps
Answered

Dropdown box default value

(1) ShareShare
ReportReport
Posted on by 121

I have a dropdown within an edit form that's linked to records in a SharePoint list.

 

All text and date fields in this form display the current Parent.Default values correctly of the selected item.

 

The dropdown however throws an error "Expected Table Value", and does not show the current selected items value as the default selected item.

 

What's the best way to go about correcting this?

 

Marty_Dub_0-1719891851165.pngMarty_Dub_1-1719891876184.png

 

 

Thanks as always!

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Marty_Dub ,

     

    What's the column type of 'Invoice Type'?

    What's the formula of the data card's Default property?

     

    Best Regards,

    Wearsky

  • Marty_Dub Profile Picture
    121 on at

    Hi @v-xiaochen-msft  - the column type for this field is 'Single line of text', and the data card's default property is ThisItem.'Invoice Type'

     

    Cheers.

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Marty_Dub ,

     

    This is the root of the problem. If you want to use a dropdown control, you need to provide a table instead of a string. 

    I'm a bit confused, the value of that column ('Invoice Type') is just a text. Which options do you expect to be selected from the drop down?

     

    Best Regards,

    Wearsky

  • Marty_Dub Profile Picture
    121 on at

    Thank you @v-xiaochen-msft  - there are three items to choose from in the drop down ["NOI","RCTI","GEV"].

     

    Essentially, I'd like the drop down to default to the value which has been recorded on that item when it was created (i.e. it will be one of the three options above).

     

    Do I need to modify the SharePoint column type etc or is the solution within PowerApps?

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

    Hi @Marty_Dub ,

     

    You don't have to change the column type.

    Let's say you are using combo box control rather than dropdown control. Please try these types:

    1\ Set items property of combo box to:

    ["NOI","RCTI","GEV"]

    2\ Set DefaultSelectedItems property of combo box to:

    If(IsBlank(LookUp(["NOI","RCTI","GEV"],Value=ThisItem.'Invoice Type').Value),["NOI"], Table({Value:LookUp(["NOI","RCTI","GEV"],Value=ThisItem.'Invoice Type').Value}) ) 

     

    3\ Set Update property of the data card to:

    <combo box>.Selected.Value

     

    Best Regards,

    Wearsky

  • Marty_Dub Profile Picture
    121 on at

    Amazing @v-xiaochen-msft  - thank you, that worked a treat!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard