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 default value ...
Power Apps
Unanswered

setting default value of a datacard dropdown value based on datatable selected item

(0) ShareShare
ReportReport
Posted on by 73

Hi All, 

 

I am trying to do set the default value of a datacard dropdown (called: DataCardValue57) so that it shows the selected row of a datatable (called datatable6). the field i want to set as default in the datatable is called Item_Category

 

in the default setting of datacardvalue57 dropdown i tried the following:

DataTable6.Selected.'Item Category' (but its coming with a red line so syntax must be wrong)

datatable6.selected (syntax is good no red line, but doesn't assign the default value)

 

am i missing something ? 

 

any help would be appreciated

 

 

 

 

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @kriscachia ,

     

    Do the DataTable and the form have the same data source? Also, what is the type of column you are trying to populate with datacardvalue57?

  • kriscachia Profile Picture
    73 on at

    Hi there, thanks for your reply.

     

    Datatable6 is connected to datasource called RRF Item Categories  (Column called Item Category). This item category column is a normal text field

     

    Then i have the ProductsEntry Form with Datacardvalue57 (which is a dropdown with Item Categories coming from datasource "RRF Item Categories"). Here i want to display the default value which is selected in Datatable6 

     

    But the trick that i need to solve is that datatable6 is text and datacardvalue57 is a dropdown with ID and its value "Item Category". 

     

    So basically:

     

    datatable6                                    ProductsEntry

    Finished Product                         

    Semi-Finished

    Packaging           ----------->       datacardvalue57 (must link to "Packaging" and then use the ID to display value)

     

    Hope i explained well. I can provide some screenshots too 

     

    kind regards 

     

     

     

    (this .selected row i want to go as a default value in the Products Entry Form

     

     

     

     

     

  • kriscachia Profile Picture
    73 on at

    attached i included screenshot.

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @kriscachia ,

     

    What is the error message you receive for DataTable6.Selected.'Item Category' ?

  • kriscachia Profile Picture
    73 on at

    when i put that in the default setting, i get error: Expected Record Value

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @kriscachia ,

     

    Are you then sure Datacardvalue57 is a dropdown and not a combobox?

     

    Assuming it is a combobox, set the DefaultSelectedItems property to:

    DataTable6.Selected

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard