cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
satya
Helper II
Helper II

DropDown Values from SharePoint Single line of Text column

i have a SharePoint list with column of type single line of text, i need to bind the data from single line of text to drop down. duplicate records should not show and default value of dropdown should be "Please Select"
Please help me to achieve this.
3 REPLIES 3
dinusc
Microsoft
Microsoft

You can use a ComboBox control as following:

ComboBox1.Items=Distinct(Your_SP_List, UniqueColumn)

ComboBox1.InputTextPlaceholder="Please Select"

ComboBox1.SelectMultiple=false

hi,

 

i have created collection as ClearCollect(ABDrop,{colname:"Default Value"},Distinct(MyTest,colname)), but when i am trying to bind collection to Combobox it is showing empty values

I'm not sure I understand the meaning of the {colname:"Default Value"} in your ClearCollect formula.

Please try this:

ClearCollect(ABDrop,Distinct(MyTest,colname))

If you intended to add an extra item to your collection, then you will have to do this by a separate Collect

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,468)