I have a scenario where for a document library , i have 4 content types as: Lease, Loan, Finance, Admin. Similarly for each of these content types, I have respective views created. View names are same as content type names.
OOTB, post uploading a document, SharePoint brings you to the default view, I am looking to override this. So let's say if user populates content type as Admin then once they click on save/check in, it should bring them to Admin view even though its not a default view.
Can someone please help me with the JSOM code to achive this in SharePoint online, something that can work on PostSaveAction. Thanks in advance.