Can I save created forms into site template?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
This is a known issue that has not been fixed since SharePoint 2010. To work it around, please, insert the following code into a display form with Forms Designer:
This is a known issue that has not been fixed since SharePoint 2010. To work it around, please, insert the following code into a display form with Forms Designer:
Code: Select all
//Fix Edit item link on a display form
ExecuteOrDelayUntilScriptLoaded(function () {
var replacement = '$1' +
(_spPageContextInfo.webServerRelativeUrl == '/' ? '' : _spPageContextInfo.webServerRelativeUrl) +
'/_layouts/15/listform.aspx?PageType=6&ListId=' +
_spPageContextInfo.pageListId +
'&$3';
// Fix ribbon
try {
var wpId = $('#fd_form').closest('div[webpartid]').attr('id');
var cmd = SP.Ribbon.PageManager.get_instance().getPageComponentById(wpId)._controlData['Ribbon.ListForm.Display.Manage.EditItem'];
if (cmd && cmd.ClickScript.indexOf("~list") > 0) {
cmd.ClickScript = cmd.ClickScript.replace(/(javascript:STSNavigateWithCheckoutAlert\(')(.*\?)(.*)/, replacement);
}
} catch (e) { }
}, "sp.ribbon.js");
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Good news for everyone! Now you can transfer forms within a site template even if they contain Related items controls or there are multiple groups of forms. Moreover, you can continue customizing forms on a target site right after creating:
http://spform.com/documentation/versions#3_0_1
http://spform.com/documentation/versions#3_0_1
-
- Posts: 9
- Joined: Tue Nov 24, 2015
Dimtry, can you please confirm the process. If I save a site as a template in SharePoint Online and there are lists in that current site with Form Designer instances configured, will they also save in the Site Template?
Likewise, if I create Dashboard Designer instances are they saved with the Site Template by chance?
Likewise, if I create Dashboard Designer instances are they saved with the Site Template by chance?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi Anita,
Yes, starting from Forms Designer 3.0.1 you can transfer forms within a site template. As for Dashboard Designer, you should test it: if a source list has the same URL in the new location then the chart will work.
Yes, starting from Forms Designer 3.0.1 you can transfer forms within a site template. As for Dashboard Designer, you should test it: if a source list has the same URL in the new location then the chart will work.
Hello, I am currently getting an error trying to create a site template using Forms Designer 3.1.2 for SharePoint Online. Is this issue resolved or does it require additional configuration? Here is the error:
Sorry, this site can't be saved as a template. It contains apps that don't work in templates: Forms Designer
Thanks for your help.
Sorry, this site can't be saved as a template. It contains apps that don't work in templates: Forms Designer
Thanks for your help.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
You cannot save a site containing apps as a template. First, you have to remove all apps. All the designed forms will continue working properly. Next, save the site as a template.
You cannot save a site containing apps as a template. First, you have to remove all apps. All the designed forms will continue working properly. Next, save the site as a template.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests