Redirect to Edit Form doesn't work on New Form Panel

Hiya Plumsail

We have a form that is in a large panel:

But we are doing a redirect on the new form to a custom edit form that creates some extra related items in another list on save of the item. But the redirect doesn't work if the form is in a panel.

The redirect does work when the form is not in a panel.

Is there some extra Javacript I need to get the panel form to redirect on save or is it not possible?


Hello @Jamal_Smith-Graham,

Yes, the default redirection doesn't work in a panel. Please try out the below code to redirect user from New to Edit form when the form is opened in the panel.

fd.spSaved(function(result) {
    var listId = fd.spFormCtx.ListAttributes.Id;
    var itemId = result.Id;
    if (fd.isPanel) {
        const formCommands = new window.Plumsail.FormCommands({
            webUrl: fd._formManager._webUrl,
            listId: listId,
            listUrl: fd._formManager._listUrl,
            culture: _spPageContextInfo.currentUICultureName,
            language: _spPageContextInfo.currentLanguage,
            componentLoader: window._spComponentLoader
        formCommands.load().then(function() {
                itemId: itemId,
                contentTypeId: fd.contentTypeId,
                formType: "Edit",
                rootFolder: fd.rootFolder
    } else {
        //replace "" with path to your site
        result.RedirectUrl = "" + listId + "&ID=" + itemId;
1 Like

thanks for this @mnikitina, the form is a different form set edit form, this looks like it would redirect to the default edit form is there a way I can redirect to another form set's edit form?

5ada64aa-37c6-4f53-b737-1603f1b37aeb is for form set ID

Hello @Jamal_Smith-Graham,

You can set up the custom routing to redirect user between form sets. You can find more information and examples in our documentation here.

1 Like