This seems to have been asked a couple of times, but i just can't get it to work.
I used to Custom Routing Code if found here(Redirect to a specific formset edit page - #4 by mnikitina):
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
//FormID is the name of teh query parameter
const formSetId = urlParams.get('FormID');
console.log(queryString);
if(formSetId){
return formSetId ;
}
And added the FormID parameter to the URL:
https://sharepoint.com/sites/subsite/_layouts/15/listform.aspx?PageType=6&ListId=listID&ID=1&FormID=5fffbc66-6d9c-4afe-ad5a-0844995f5ec5
It just logs the ItemID as parameter and redirects to the default form, throwing the no formset found error.
What am I missing here?
Best whishes
Nico