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 / Combobox selection aut...
Power Apps
Answered

Combobox selection autopopulates other fields - works in preview but not play mode.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all - new powerapps user here:

 

Currently making a canvas type app against an SQL server.

PowerApps version: 3.20082.19

 

I have a combobox which depending on its selection will populate the proceeding 5 datacards' values with other information from the same row in that SQL database's table. These 5 datacards are linked in their datacardvalue DATA fields using "ComboBox1.Selected.COLUMNNAME". This works fine in the preview mode - I can see the fields have this information entered however when I save, publish and play the app this feature stops working. Nothing is entered into the DB's table from these autopopulated fields in play mode either. 


I have checked its the right version published etc. but other than that have no other ideas as to why it works in preview but not play. 


Thank you,

Holder1001

 

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

    Hi @Anonymous ,

    Do you type the whole SQL Table data source within the Items property of the ComboBox?

    I assume that you typed the whole SQL Table data source within the Items property of the ComboBox, and you have added a Primary Key in your SQL Table, please try the following workaround:

    Set the Items property of the ComboBox to following:

    '[dbo].[YOurSQLTable]'

     

    Set the Default property of the Text Input Box in your Edit form to following:

    LookUp('[dbo].[YourSQLTable]', 'Primary Key Column' = ComboBox1.Selected.'Primary Key Column').ColumnName

    ...

     

    Please try above solution, check if the issue is solved.

     

    Regards,

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
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard