Dynamic updates to list or library are not reflected in Folder controls

I've noticed that if you use custom code to set the root folder of a list or library control, the new folder command does not create a new folder in the desired place, but at the root of the library.

e.g. if library control is set dynamically to ProjectDocuments/1234

clicking the new folder creates ProjectDocuments/new folder,

but I want it to create ProjectDocuments/1234/new folder.

Is there a way to make the new folder/up one folder buttons work relative to the root folder that has been dynamically set?

Kind regards

Andy

Hello @abolam,

I couldn't reproduce the case on my side.

Could you please share the code that you are using to set the Root Folder of the library.

Do you get any errors in the browser console (F12)? Could you please share the screenshot.

Already solved under another ticket.

1 Like