Why is the submitted form not displayed

hello everyone

I have created a form in which the user enters some data. After entering the data, the user saves the data.
Now I would like that after the message "Thanks for submitting the form!" the user can view the data in display mode. (In Plumsail there is a form in display mode)

I have tried this with the following code, but without success.


fd.spSaved(function(result) {
    var listId = fd.spFormCtx.ListAttributes.Id;
    var itemId = result.Id;

    result.RedirectUrl =
        "https://123Group.sharepoint.com/sites/Operation/_layouts/15/listform.aspx?PageType=4&ListId="
        + listId + "&ID=" + itemId;

The URL is the location where the Microsft List is located.

What am I doing wrong?

thx
Andreas

Dear @Andreas_Sch,
If you're running the form from a panel, this code wouldn't work. You can try the following:

fd.spSaved(function(result) {
    var listId = fd.spFormCtx.ListAttributes.Id;
    var itemId = result.Id;

    window.location.href =
        "https://123Group.sharepoint.com/sites/Operation/_layouts/15/listform.aspx?PageType=4&ListId="
        + listId + "&ID=" + itemId;
});
1 Like

Hello Nikita
thank you very much for the quick response, it worked right away.

many thanks
Andreas