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 / Populate a text field ...
Power Apps
Unanswered

Populate a text field with a combo box multi-select value and then pass it back if selected

(0) ShareShare
ReportReport
Posted on by 163

Hi,

 

I am trying to create a form that has a field that is a text field in DV - but in the form I am using a combo box instead to populate it with items from a collection. The combo box is multi select, I then want to populate the text box with the items selected in the combobox when the form is in New Mode.

 

The form can then also be populated when a user selects that item from the Data table, in which case I would then want that combo box to show the items based on the item selected.

 

Currently I am using this formula in the default of the datacard:

Concat(ComboBox1.SelectedItems, Value, ",")

 

However this only populates the field in DV with the first selected item?

Any help would be appreciated.

Categories:
I have the same question (0)
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @lalford09,

    You can set the DefaultSelectedItems property of ComboBox as:

    If(IsBlank(DataTable2.Selected),Test07171S,DataTable2.Selected)

    vmingkzmsft_0-1693192525997.png

     

    And set the Default property of DataCardValue as:

    Concat(ComboBox2.SelectedItems,Name,",")

    vmingkzmsft_1-1693192610528.png

     

    Note that Name is my field in DataVerse.

     

    Best Regards,

    Kyrie

     

  • lalford09 Profile Picture
    163 on at

    Tahnsk @v-mingkz-msft however this isn't quite working

     

    I have set both the properties you have mentioned above however the text field in DV is only populating with the last selected option from the combo box, and then when I select an item from the data table, the combo box is staying blank instead of pulling through the value(s), any ideas?

     

    Can I also just check that Test0717S is the name of your DV table?

     

    Thanks

     

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    @lalford09,

    Sure, the Test07171S is Dataverse table.

    vmingkzmsft_0-1693300173140.png

    Could you please show some screenshots about your Combobox and textbox?

     

  • lalford09 Profile Picture
    163 on at

    Sure @v-mingkz-msft 

     

    Here is the DefaultSelectedItems of the combo box

    lalford09_0-1693300465569.png

     

    Here is the default of the text box:

    lalford09_1-1693300494072.png

     

    The Reason it is ThisItem.Scope_Covered as that seems to be the only available option linking to my DV table

     

    And then here you can see that when I select the item from the data table, the text box populates with the one selected item (even though I chose 4 originally), but not the combo box

    lalford09_2-1693300586436.png

     

     

  • lalford09 Profile Picture
    163 on at

    @v-mingkz-msft Thanks for your help, I have managed to find a working solution here:

     

    Saving and displaying multi-choice Combo Box in a Text field – Practical Power Apps

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard