Redirect to Edit after Save of newform

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.

Hello @Sppro,

Welcome to Plumsail Community!

This is a strange URL:
https://mysharepoint.sharepoint.com

Does that your SharePoint Site URL?

DO you get any errors in the browser console (F12)? Could you please share the screenshot.

It s a Sharepoint Online site, I just didnt want to put the company url up.

I dont get any errors, but result comes back with just
Result {
id: null,
redirectUrl: /Clients/CompanyName
}

Im thinking it must be related to it being a Document Set and not a custom List

@Sppro,

Yes, this is related to the Document Set. Seems that there is an issue with getting an ID on form save for Document Sets. We will look into the issue.

I'm sorry about that. I will let you know once I have the news.