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 / Modern control drop do...
Power Apps
Suggested Answer

Modern control drop down is finicky

(1) ShareShare
ReportReport
Posted on by 171

Hi. I'm successfully added a modern control drop-down that correctly grabs the "options" I want to choose from. But the default value it shows in a table of rows is not the actual underlying value in SQL server, but blank. I've tried setting DefaultSelectedItems = ThisItem.TheFieldInQuestion or {Value:ThisItem.TheFieldInQuestion}. Still nothing. Except for one random time, that did seem to work??? Please help!? Thanks!

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @CedarTree72,

    What is the column type of this TheFieldInQuestion in your SQL table?

    You need to access to the column value within the table data of TheFieldInQuestion column.

  • CU04021832-1 Profile Picture
    171 on at

    It 's a text field in both the dropdown options table in SQL server (listTable) and the underlying table that stores the data in SQL server (tblTable), i.e., nvarchar(100). @v-qiaqi-msft

     

    Edit: And I sometimes see "INJECTO" in the dropdown field??? 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @CedarTree72,

    Try 

    {TheFieldInQuestion:ThisItem.TheFieldInQuestion}
  • PA_Forum_User Profile Picture
    71 on at
    Hello @CedarTree72 ​​​​​​​​​​​​​​
     
    Did you find out any solution for your problem?
     
    Your soludion does not work, unfortunatley, but thanks for trying.
     
  • Suggested answer
    CodeAvenue Profile Picture
    104 on at
    This error gave me a run for my money but I finally nailed it based on answer from @v-qiaqi@microsoft.com
    And now it makes a lot of sense when you think about it. By the way, the solution below for Dataverse table.
    For SharePoint List the DefaultSelectedItems = ThisItem.Status
     
    1. So you first set the items property to the Choice field.
    Items = 
    Choices([@ISSDE_Taskss].cr23f_status)
     
    2. Then go to the Display of the Property and add the "Value" field.
     
    3.Finally, in the DefaultSelectedItems, set it to this.
    DefaultSelectedItems= 
    {Value:ThisItem.'Status (cr23f_status)'}

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard