web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Modern control drop down is finicky

(1) ShareShare
ReportReport
Posted on by 153

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!

I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Modern control drop down is finicky

    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.

  • CedarTree72 Profile Picture
    153 on at
    Re: Modern control drop down is finicky

    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
    on at
    Re: Modern control drop down is finicky

    Hi @CedarTree72,

    Try 

    {TheFieldInQuestion:ThisItem.TheFieldInQuestion}
  • PA_Forum_User Profile Picture
    68 on at
    Modern control drop down is finicky
    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
    103 on at
    Modern control drop down is finicky
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard