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 / DefaultSelectedValue n...
Power Apps
Answered

DefaultSelectedValue not able to display on gallery item selected

(1) ShareShare
ReportReport
Posted on by 39
Hi Hello,
 
I am trying to display the selected item value of the gallery on the right hand site. But getting this error from combobox type. In backend its SharePoint column of type choice.
 
Other columns values are working fine and able to display the content. 
 
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi there, 
     
    I just created a Choice column in my SharePoint list, added both modern and classic Combobox on the screen and a gallery to select the item. Here's my code -
     
    Combobox Items - 
    Choices([@<your SP list>].status)
    
    //If the SP list name has spaces - 
    
    Choices([@'<your SP list>'].status)
    
     
    DefaultSelectedItems - 
    Gallery4.Selected.status
    Pretty simple and it works fine on my side. 
     
    Hope this is helpful. 
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Suggested answer
    narayan225 Profile Picture
    2,547 Moderator on at
    You don't need the .Value part.
     
    You can simply do following:
    Gallery4.Selected.Status
    If it needs to load all the choices that are in your sp list, use following code:
    Choices([@'DataSource'].Status)
    Hope this helps.
    Cheers!
  • CU28081555-1 Profile Picture
    39 on at
    Hello, thanks for your response. 
    I tried as said below, but still getting error. Below is the error. Could you please suggest to fix this?
     
     
  • Suggested answer
    narayan225 Profile Picture
    2,547 Moderator on at
    Try making the table out of the selected value.
    Table(Gallery4.Selected.Status)
    This should solve the problem.
     
    Cheers!
  • CU28081555-1 Profile Picture
    39 on at
    Hi Narayan,
     
    I tried this but still now working. That something that i am missing something here? Please suggest.
     
  • Verified answer
    Talha_Dar Profile Picture
    870 Super User 2024 Season 1 on at

    Hi,

    Please try the following on the DefaultSelectedItems property of your ComboBox:

    {Value: Gallery4.Selected.Status.Value}

    Also, please confirm if the Items property of the ComboBox is properly set to:

    Choices([@'DataSource'].Status)

    This should ensure that the ComboBox displays the correct selected item based on the value from Gallery4.

    If this helps, please give it a like or mark it as the answer so others may know the issue has been resolved!

  • CU28081555-1 Profile Picture
    39 on at
    Hi Talha, Thanks a lot. 
     
    With little change i am able to get it again thanks a lot.
    {Value: Gallery4.Selected.Status.Value}
     
    {Value: Gallery4.Selected.Status.Text} this worked perfectly in my case.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard