Forum Discussion
Override NewForm, DisplayForm, EditForm with SharePoint Provider-Hosted Add-In
Hello,
I want to implement a SharePoint Provider-Hosted Add-In to implement a business process. Data will be stored in SharePoint Lists (main List and several secondary Lists). I would like to ensure that add/edit/display forms of the main List are open in the Provider-Hosted app instead of the native SharePoint forms. Is this possible? If yes, how?
I want to use modern List experience and want to take advantage of the SharePoint native experience to avoid to implement it using custom development.
The app is going to open in a full page mode and the environment is SharePoint Online.
Thanks,
Miguel
3 Replies
- Might I ask why you want to implement this in a Provider-Hosted AddIn? If the data is stored in list: why not implement it with SPFx?
- miguelisidoroIron Contributor
Hello,
Some more details on my scenario.
An app part may be used but it doesn't address my requirement, sorry if I wasn't clear enough.
I don't want to implement listing for the app since SharePoint does that for me using SharePoint list native features where I can create views, filter, order, etc the information I have in the List.
The data when the form is submitted to several Lists but there is one main List from where I would like the user interaction to happen.
So what I would like to is from the native main SharePoint List (modern experience if possible, classic experience if not possible in modern experience), to have the following:
- The new button in the SharePoint List to open my provider-hosted app
- When I click the item in the List, to be able to open and edit the data in my provider-hosted app (I can create a calculated column in the List if needed)
For the user experience to be seamless and even if the search results return an item form my main Process SharePoint List, I would like that when the user clicks the link, it opens in my provider-hosted app (I configure a Content Search Web Part for this but would like to avoid it).
The most elegant solution I see here is to override the NewForm, EditForm and DisplayForm for the SharePoint List to my provider-hosted app and if possible using the modern experience.
I was thinking in something like
https://sharepoint.stackexchange.com/questions/130734/custom-display-edit-new-forms-in-a-o365-provider-hosted-app
- Is this possible using modern List experience?
- Is this possible using classic experience?
Thanks,
Miguel
- miguelisidoroIron Contributor
Hello Juan,
For the present, the only thing you can do using SPFx is web parts, not full page applications. Using a provider-hosted add-in, I can choose whatever technology I want to implement the add-in (ex: MVC with Knockout JS, Angular, etc).
When full pages becomes available in SPFx, I will consider it as an option.
Can you please confirm that it is possible to override the NewForm, DisplayForm, EditForm to the URL of a Provider-hosted addin?
Thanks,
Miguel