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 ComboBox DefaultSe...
Power Apps
Answered

Set ComboBox DefaultSelectedItems

(0) ShareShare
ReportReport
Posted on by 121

Hi Team,

 Need urgent help on setting default selected item of a combobox .

 I am storing the combobox selected item in to a text field of sharepoint with "," separated .

 

Textvalue = "Item1,Item2,Item3"

 

So when next time user will navigate to the form , he should be able to see Item1, Item2,Item3 selected .

 

and it should not allow user to select Item1 or Item2 or Item3 again .

 

Please suggest.

 

Thanks

gautmish

Categories:
I have the same question (0)
  • Verified answer
    TimRohr Profile Picture
    669 on at

    I think you're going to have to use Split() to parse that string into a 1d table.

     

    Once you have that, look at this thread for how you go about disallowing those items:

    https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Primary-Secondary-and-Tertiary-Drop-Down-Lists-Limit-Selections/m-p/185429/highlight/true#M3252

  • MihirY Profile Picture
    129 on at

    I got the table by using split function. I have done as below

    UpdateContext({defaultSelectedItems: (Split(LookUp(MultiValueTransaction,ID=glbSelValue.ID,TransRelationValues),",").Result)});
    Clear(colDefaultItems);
    ForAll(defaultSelectedItems,Collect(colDefaultItems,Result))

    I am getting the table then converting to collection. I have applied this to combo box which i am seeing the results. but the problem is those results were not selected in the combobox as shown in below pictures. 

    PA_Defaultitems.PNGPA_Defaultitems2.PNG

    Same value has been selecting twice but when I deselect the same value previous value (from code) is still there. 

     

    How to fix this?

     

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard