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 / Text as Pre-Selected D...
Power Apps
Answered

Text as Pre-Selected Default Value in Combobox

(0) ShareShare
ReportReport
Posted on by 100

I have a sharepoint list that acts as a database.


In the Canvas app I use a Gallery Control to display the items from Sharepoint. Everything works very well with the tools.

But when I want to edit an existing item, I can't take the existing value of a certain column as "Default", because on Sharepoint the situation looks like all columns are text columns. However, in the Canvas app I use a combo box (whose selection is later transmitted to Sharepoint as text).

 

Default = BrowseGallery1.Selected.TextColumn 

gives an error.

 

Because in BrowseGallery1 TextColumn is stored as text (because on Sharepoint it is text).

 

How can I make it that in the edit view the existing value in the combox is preselected as default?

Maybe it would be possible to store a value as text in a value in the format Record? Unfortunately I did not find this in the documentation.

Categories:
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @ultrAslan 

     

    You have hit on the solution in your last paragraph. In the DefaultSelectedItems property try the following approach:

     

    {ComboboxDisplayFieldName: ThisItem.YourSharePointTextFieldName}

     

    This manipulates the SharePoint Text field into a record schema to match that in your combo box. You will just need to adjust the names above to suit your use case.

     

    Hopes this helps

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard