SOLVED

Populating Dropdown From a SPO Doc Library PLUS Adding a "Select a File" First Item

%3CLINGO-SUB%20id%3D%22lingo-sub-870811%22%20slang%3D%22en-US%22%3EPopulating%20Dropdown%20From%20a%20SPO%20Doc%20Library%20PLUS%20Adding%20a%20%22Select%20a%20File%22%20First%20Item%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-870811%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20able%20to%20successfully%20populate%20a%20PowerApps%20drop%20down%20menu%20with%20the%20file%20names%20from%20a%20SPO%20document%20library.%20However%2C%20the%20drop%20down%20menu%20is%20pre-populated%20with%20the%20name%20of%20the%20first%20file.%20I%20want%20to%20add%20a%20blank%20first%20item%20that%20says%20%22Select%20a%20File%22.%26nbsp%3B%20I%20set%20the%20dropdown%20menu's%20AllowEmptySelection%20property%20to%20TRUE%20so%20this%20created%20a%20blank%20first%20item%2C%20however%20I'm%20not%20sure%20how%20to%20add%20text%20to%20the%20first%20item.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20recommendations%20are%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-870811%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-870895%22%20slang%3D%22en-US%22%3ERe%3A%20Populating%20Dropdown%20From%20a%20SPO%20Doc%20Library%20PLUS%20Adding%20a%20%22Select%20a%20File%22%20First%20Item%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-870895%22%20slang%3D%22en-US%22%3EWhen%20you%20select%20the%20drop%20down%20there%20should%20be%20a%20%22DefaultSelectedItems%22%20property%20or%20something%20like%20that.%20Just%20make%20that%20equal%20%22%22%20or%20leave%20it%20blank%2C%20it%20should%20not%20populate%20by%20default.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-870902%22%20slang%3D%22en-US%22%3ERe%3A%20Populating%20Dropdown%20From%20a%20SPO%20Doc%20Library%20PLUS%20Adding%20a%20%22Select%20a%20File%22%20First%20Item%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-870902%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20response!%20Unfortunately%20there%20is%20not%20a%26nbsp%3B%3CSPAN%3E%22DefaultSelectedItems%22%20property.%20However%2C%20there%20is%20a%20%22Default%22%20property%20which%20if%20I%20set%20to%20%22Select%20a%20File%22%2C%20it%20still%20appears%20as%20blank%20in%20the%20first%20item%20in%20dropdown%20when%20app%20loads.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-870913%22%20slang%3D%22en-US%22%3ERe%3A%20Populating%20Dropdown%20From%20a%20SPO%20Doc%20Library%20PLUS%20Adding%20a%20%22Select%20a%20File%22%20First%20Item%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-870913%22%20slang%3D%22en-US%22%3EYour%20crawling%20down%20a%20rabbit%20hole%20trying%20to%20add%20values%20to%20the%20drop%20down%20instead%20of%20utilizing%20form%20%2F%20field%20validation%20methods%20in%20order%20for%20someone%20to%20pick%20values.%20%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20might%20be%20better%20is%20a%20combo%20of%20that%2C%20if%20you%20look%20at%20the%20InputTextPlaceholder%20property%2C%20this%20is%20that%20light%20text%20in%20the%20drop%20down%20before%20clicking%20on%20it%2C%20you%20can%20add%20what%20you%20need%20there.%20Then%20you%20can%20have%20a%20label%2C%20show%20up%20above%20the%20column%20or%20something%20that%20shows%20unless%20the%20dropdown%20has%20a%20selecteditem%20etc.%20%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20adding%20actual%20values%20to%20the%20drop%20down%20is%20something%20you%20really%20don't%20want%20to%20mess%20with%20%3A).%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-870917%22%20slang%3D%22en-US%22%3ERe%3A%20Populating%20Dropdown%20From%20a%20SPO%20Doc%20Library%20PLUS%20Adding%20a%20%22Select%20a%20File%22%20First%20Item%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-870917%22%20slang%3D%22en-US%22%3EUnderstood.%20Thanks%20so%20much%20for%20the%20info!%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I am able to successfully populate a PowerApps drop down menu with the file names from a SPO document library. However, the drop down menu is pre-populated with the name of the first file. I want to add a blank first item that says "Select a File".  I set the dropdown menu's AllowEmptySelection property to TRUE so this created a blank first item, however I'm not sure how to add text to the first item.

 

Any recommendations are greatly appreciated.

4 Replies
Highlighted
When you select the drop down there should be a "DefaultSelectedItems" property or something like that. Just make that equal "" or leave it blank, it should not populate by default.
Highlighted

@Chris Webb Thanks for the response! Unfortunately there is not a "DefaultSelectedItems" property. However, there is a "Default" property which if I set to "Select a File", it still appears as blank in the first item in dropdown when app loads.

Highlighted
Best Response confirmed by cgtrman (Contributor)
Solution
Your crawling down a rabbit hole trying to add values to the drop down instead of utilizing form / field validation methods in order for someone to pick values.

What might be better is a combo of that, if you look at the InputTextPlaceholder property, this is that light text in the drop down before clicking on it, you can add what you need there. Then you can have a label, show up above the column or something that shows unless the dropdown has a selecteditem etc.

But adding actual values to the drop down is something you really don't want to mess with :).
Highlighted
Understood. Thanks so much for the info!