Forum Discussion
Deleted
Jan 31, 2019Dynamically Populate SPO List With Files From Specific Folder?
Can I dynamically populate a field in a SPO list (when a new item is being added) with a list of files (user will select one file) from a specific doc library or folder?
NeverHere
Feb 04, 2019Brass Contributor
cgtrman,
The only thing I can think of would be to create different content types for each file, then set the list up to manage content types. The user would then have a list of only templated entries if you will. You can do the same in a document library and it looks something like this. Unless I am misunderstanding your request, and if so I apologize.
Deleted
Feb 05, 2019I created a screenshot to clarify what I'm trying to accomplish. While viewing a SPO list, a user clicks "Add new item" and sees this form. For the File field, it is not a free-form text field but rather is a drop-down menu populated with files from a doc library. After a user selects one file from the drop-down menu, the file name would be added to the form. Is this possible in SPO?
- NeverHereFeb 05, 2019Brass Contributor
ctgrman,
I finally understand, thank you for clarifying. You could use a calculated column for this but based on the screenshot you sent me it looks like you want to populate the item Title column. This means you probably need a workflow that would populate the title field when an item is submitted. You would also need to make title not required for this to work. You could use SharePoint workflow for this but MS flow might be a better longer term solution. I hope this helps!
- DeletedFeb 05, 2019
Thanks for the quick response. Don't worry about how the other fields are populated (e.g., Title) and I can manage creating a Flow to perform all required tasks. How would I populate the drop-down menu with the names of the files in a specific doc library? That is the question I need solved.