Forum Discussion
Oz Oscroft
Jun 12, 2019Iron Contributor
List items not saving in folders
Morning all - tearing my hair out with this one! Here's the scenario:
- Using SharePoint Online.
- I've created a list using site content types to collect relevant fields of data dependent on the content type.
- I've enabled folders in the list so that I can control view / edit access at folder level.
Here's the problem:
- I select a folder to go into it.
- Click the '+New' button and select the relevant content type.
- Complete the relevant fields and click Save.
- The list item saves in the root of the list, not the folder I was in when I clicked the New button.
I've also noticed that when I right-click on a folder there's no 'Rename' option as there would be in a Document Library. There's an Edit option which shows the path and folder name, but no option to change it. It's as if the list is treating the folder as a list item and not a folder.
I really hope someone can help as this is causing me real headaches! Thanks as always. Oz
- Thivagar_SegarBrass ContributorHi Oz,
sharepoint doesn't allow to rename the folder using right click option, but you can rename the folder using quick edit option.
Then regarding you actual problem, i would like to know how you created the content type? is it created pragmatically or using site content type from site setting, but in both option my new items are placing where i am creating the item.- Oz OscroftIron Contributor
Thivagar_Segar , thanks so much for the quick reply.
- Folders renamed successfully using Quick Edit.
- To create the content types I did the following:
- Site Settings > Site Content Types
- Create
- Used List Content Types > Item as parent (not sure this is correct as I'm not that familiar with using Content Types) and put it in a New group.
- I've then created all the required columns in the List settings
- Again under List settings I opened each content type and selected the columns I wished to include
Really hoping you can help as I need to get a prototype out to the business ASAP.
Thanks again, Oz
- Thivagar_SegarBrass ContributorHi Oz,
it seems you have created the content type in correct way but i am not sure why the items are getting created at root level.
but i suggest you to have a look on the URL while creating a new item, the url format should be https://tenant.sharepoint.com/sites/sitename/lists/listname/allitems.aspx?id=%2Fsites%2Fsitename%2FLists%2FListname%2Ffoldername
you can replace the above url format with your URL and find out what was the URL showing while creating the item.