Is it possible to create feature event receiver in SharePoint Online? My goal is to open custom task form based on content type which I do like following in case of on-premise:
Create an empty SharePoint 2016 solution in Visual Studio
Add a Feature and then add Event Receiver under it
In "FeatureActivated" method write the following code:
SPContentType MyApprovalProcess = web.ContentTypes["MyApprovalProcess"]; MyApprovalProcess.EditFormUrl = "_layouts/15/SP.Solution.MyProject/MyCustomForm.aspx";
After deploying feature, when you click on task then MyCustomForm.aspx opens.
Can I do the same in SharePoint Online i.e. to open custom task form using above or some other way?