@kwiz/common 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -657,7 +657,7 @@ export function GetListContentTypesSync(siteUrl: string, listIdOrTitle: string,
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
/** generic version. for the KWIZ forms version that supports action id call GetListFormUrlAppsWeb instead */
|
|
660
|
-
export function GetListFormUrl(siteUrl: string, listId: string, pageType: PageType, params?: { contentTypeId?: string; itemId?: number | string; }) {
|
|
660
|
+
export function GetListFormUrl(siteUrl: string, listId: string, pageType: PageType, params?: { contentTypeId?: string; itemId?: number | string; rootFolder?: string }) {
|
|
661
661
|
siteUrl = GetSiteUrl(siteUrl);
|
|
662
662
|
|
|
663
663
|
if (!isValidGuid(listId)) console.error('GetListFormUrl requires a list id');
|
|
@@ -667,6 +667,8 @@ export function GetListFormUrl(siteUrl: string, listId: string, pageType: PageTy
|
|
|
667
667
|
url += `&ContentTypeId=${encodeURIComponent(params.contentTypeId)}`;
|
|
668
668
|
if (!isNullOrEmptyString(params.itemId))
|
|
669
669
|
url += `&ID=${encodeURIComponent(params.itemId as string)}`;
|
|
670
|
+
if (!isNullOrEmptyString(params.rootFolder))
|
|
671
|
+
url += `&RootFolder=${encodeURIComponent(params.rootFolder)}`;
|
|
670
672
|
}
|
|
671
673
|
return url;
|
|
672
674
|
}
|