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 / Setting Dropdown card ...
Power Apps
Answered

Setting Dropdown card value allowed values from SQL table

(0) ShareShare
ReportReport
Posted on by 11

I currently have a Form that has a drop-down list that is pulled from a SQL list.   I have the form saving the correct value by setting the Update to select the ID and not the name.  My issue is that it will not show the correct set selection from the database.  The edit form needs the drop-down set by the id of the ref table by the type_id handed to it and display the Name tied to that id.  I really just need a way to set the default id and not the value. 

 

image.png

 

I have tried setting the default to the following with no obvious change.

image.png 

 

Posts I have looked at and not found a solution.  

https://powerusers.microsoft.com/t5/Creating-Apps/Powerapps-iInding-to-dropdown-control-with-two-column-datasource/m-p/76292#M557

https://powerusers.microsoft.com/t5/General-Discussion/Populate-dropdown-with-values-as-well-as-display-texts/m-p/1902#M1086

Categories:
I have the same question (0)
  • Verified answer
    bsparks0269 Profile Picture
    11 on at

    Solved my own issue.  The default value has to match the values listed in the drop-down.  The whole time I was trying to match the ID value, which is not set at the drop-down value.

     

    The formula for the drop-down is listed below.  Just need to build a lookup and then find where it is set to the ID and have it produce the named value.

     

    LookUp('[dbo].[gates_contacts_types]',id = Parent.Default).name

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard