I have SharePoint Online, and I am creating a new form using Plumsails forms.
I need the user to be redirected to the edit form after they save newform because I have a list with lookup fields that need to be saved against the item.
I have entered this js code in to the JS section of the Form
fd.spSaved(function(result) {
var listId = fd.spFormCtx.ListAttributes.Id;
var itemId = result.Id;
//PageType=6 means Edit Form
result.RedirectUrl = "https://mysharepoint.sharepoint.com/_layouts/15/listform.aspx?PageType=6&ListId=" + listId + "&ID=" + itemId;
});
as per https://plumsail.com/docs/forms-sp/how-to/redirect-sp-save.html#redirect-to-edit-form
but I am funding that result.Id is always null?
I should also mention I am using a Document Set.