fd.spSaved(function(result) {
var listId = fd.spFormCtx.ListAttributes.Id;
var itemId = result.Id;
//replace "https://domain.sharepoint.com/sites/sitename/subsite" with path to your site
//PageType=6 means Edit Form
result.RedirectUrl =
"https://domain.sharepoint.com/sites/sitename/subsite/_layouts/15/listform.aspx?PageType=6&ListId="
+ listId + "&ID=" + itemId;
});
but i am getting the following error message (Exception from HRESULT: 0x80131904). Please help:
Try replacing "sitename" in the link with the actual name of your SharePoint site (you can check it in your browser's address bar when opening the site).
hello, my current url is
ttps://itsamcomachinery.sharepoint.com/sites/NCR/Lists/Restore_Non%20Conforming%20Material%20Report_202403121/KUNALS%20VIEW.aspx"