Open FormSet from button

What is the code for opening another FormSet from the Click event? I have the FormID.

Dear @tonjew,
You can use Form Set ID in URL, for example, like this:

window.location.href = 'https://domain.sharepoint.com/sites/sitename/SitePages/PlumsailForms/ListName/Item/EditForm.aspx?item=' + fd.itemId + 'FormID=4d4ed9f7-da50-4ab6-8fed-9fdc94db36a6'

Then, use the following code in routing to open the correct Form Set:

const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
//FormID is the name of teh query parameter
const formSetId = urlParams.get('FormID')

if(formSetId ){
  return formSetId ;
}
1 Like