I am trying to create a dynamic form that has a choice field which will have all the document library names in the site. It should be dynamic -- when I create a new document library, it should appear as a choice.
How can I accomplish this?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityYou could create a list to store the all document library names in SharePoint online site.
Then you could create a lookup column to look up the field which stores the document library names.
And create a remote event receiver to add an item into the list when the document library is created.
More references:
Handling Events in a SharePoint Online Environment.
https://www.sharepointeurope.com/handling-events-in-a-sharepoint-online-environment/
SPRemoteEventType enumeration.
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.remoteapp.spremoteeventtype.aspx