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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set datacard default v...
Power Apps
Answered

Set datacard default value

(1) ShareShare
ReportReport
Posted on by 307
Struggling for a while on this one.

I want to set default values in Datacards on a dropdown. The choices vary, but are all either YES/NO or choices defined in lists.
 
The data is in a dataverse table 'Activities", for this example I will use the Column 'POReceived'.

Datacard: PORecieved_DataCard5
Control: DataCardValue41
 
Items: Choices('PORecieved (Activities)')
DefaultSelectedItems: Last(Choices('PORecieved (Activities)'))
 
 
It looks OK at first (red outline because I got an error on save):
 
 
But when I save I get an error, and if I click the dropdown, I see this (looks to me like it's really not selecting an item in the choices)
 
 
If I click the "X" it auto selects NO, and all is well.
 
Thanks.
Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,569 Super User 2025 Season 2 on at
    Hi 
     
    What does your Update property look like?
  • Verified answer
    Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at
    Try and check these 

    Default Explicitly:
     
    Use LookUp to select "NO" from the choices instead of relying on Last, which depends on order.
     
    Updated Properties:
     
    Items (Dropdown):
     
    Choices('POReceived (Activities)')
     
    DefaultSelectedItems (Dropdown):
     
    LookUp(Choices('POReceived (Activities)'), Label = "NO")

    Additional Checks:
     
    Ensure the Update property of the DataCard (not the dropdown) is set to:
    DataCardValue41.Selected.Value
     
    This ensures the correct integer value from the choice is saved.
     
    Thanks!
     
    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation
     
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Did you try configuring the default value in the Dataverse column
     
     
  • STS1SS Profile Picture
    307 on at
    @ronaldwalcott Thanks for the reply.
     
    Yes, I already tried that/had it set up
  • STS1SS Profile Picture
    307 on at
     
    Regarding this image:
     
    I solved this issue by changing the combo box from Classic to Input style.
     
    I am really not certain if this was actually an issue or not (more on that in a minute), but frankly kind of like the input style better anyway.
     
    After I made those changes and checked replies here, on your advice I checked and found a couple of things.
     
    One of the data cards combo boxes had a couple of things gone missing.
     
    First was the border color changed by errors, and the second and more important was the update property got blanked out somewhere along the line. Not sure when, but it was.
     
    I say I am not sure if the style of combo box really matters because I just resolved the primary issue here and have not tested.
     
    Thanks for your reply!
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 594 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 252

Last 30 days Overall leaderboard