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 / 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,969 Moderator on at
    Hi 
     
    What does your Update property look like?
  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator 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,862 Moderator 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

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 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard