I've created a 3-step Wizard as the New Form for a Content Type based on Document Set.
When the Finish button is clicked, a red error message appears on the Form: Cannot read property 'slice' of null
(the user is not redirected anywhere)
Note that the Document Set actually IS created and the collected metadata has been applied.
Widard.Finish is currently set to return fr.save();
Ideally, the users would be directed to the Edit form for the item they just created (without error message). Is that possible as well?
Apologies, that was a typo in my post that isn't in my actual form.
Wizard.Finish is currently set to return fd.save();
I will try commenting out all of my custom code, which currently does the following:
Cascading Lookups
Additional fields from items Looked Up
Generation of field values from other fields filled in by the user
I have the things listed above working now, without seeing the original error message
However, I now have a different error message when clicking the Finish button; it seems an extra dot/period is being added to the end of Name (FileLeafRef) field:
UPDATE: The problem with the FileLeafRef having a dot at the end was indeed my error; I am building up the FileLeafRef value from other fields and the last one did include a dot in some cases. Even though the dot didn't show up in the field's control it was still there in the field's data.
This extra issue has been resolved, but the original error message is now back (Cannot read property 'slice' of null).
I have reproduced this error in a separate tenant, in a brand new Team Site: