Can I save created forms into site template?

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

13 Feb 2014

Hi Jeff,

Yes, there is no need to modify files themseves but only if you make template from a list. If you make site template you must modify form files as described above.

blongo
Posts: 3
Joined: Thu Feb 19, 2015

19 Feb 2015

Hi there,

Has there been any progress made on trying to smooth out the process of saving the forms as a template? Right now, related lists are saved using a ListID rather than a ListName which would allow for saving the template.

In addition, we have to manually substitute the "~Site" tokens for each of the content type forms, which is not idea.

Finally, after deploying a form via a site template, when a user goes to edit the template, the form is "blank" and they must either start designing from scratch or import a SPForm template which is not ideal.

Thanks!

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

20 Feb 2015

Hi,

Thank you for the message. Do you use SharePoint on-premises or SharePoint Online in Office 365?

blongo
Posts: 3
Joined: Thu Feb 19, 2015

20 Feb 2015

On premises. Thanks!

Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0in; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

23 Feb 2015

Hi,

So, you can deploy forms programatically with the help of our web service as described in the following thread:
viewtopic.php?f=1&t=416

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

02 Mar 2015

Dimitri,


I made the following changes to the pages and the content type, but when I create the template I only see the "old" windows forms, not the custom spforms. What do you think I need to do? We have an on premis installation.

OLD

<SharePoint:ScriptLink ID="jquery" runat="server" Name="~sitecollection/style library/FormsDesigner/JQuery/jquery-1.7.1.min.js" OnDemand="false" />

<SharePoint:ScriptLink ID="jqueryui" runat="server" Name="~sitecollection/style library/FormsDesigner/JQuery/jquery-ui-1.8.17.custom.min.js" OnDemand="false" />

<SharePoint:ScriptLink ID="jquerycookie" runat="server" Name="~sitecollection/style library/FormsDesigner/JQuery/jquery.cookie.js" OnDemand="false" />

<SharePoint:ScriptLink ID="formsdesigner" runat="server" Name="~sitecollection/style library/FormsDesigner/form.min.js?rev=2_8_12" OnDemand="false" />

NEW

<script type="text/javascript" src="/style library/FormsDesigner/JQuery/jquery-1.10.2.min.js" />
<script type="text/javascript" src="/style library/FormsDesigner/JQuery/jquery-ui-1.10.3.custom.min.js" />
<script type="text/javascript" src="/style library/FormsDesigner/JQuery/jquery.cookie.js" />
<script type="text/javascript" src="/style library/FormsDesigner/form.min.js?rev=2_8_6" />

When I create the site template the custom forms do not appear. Only the default forms are there. I changed the document library content type to:

~list/Forms/fd_controller_Document_Display.aspx

~list/Forms/fd_controller_Document_Edit.aspx

~list/Forms/fd_controller_Document_New.aspx

I would appreciate any help you can give.


David

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

02 Mar 2015

Hello David,

Thank you for the question. The described method doesn't work for lists containing multiple groups of forms. Here, I'd recommend you to provision the forms programmatically with the help of your web service as described in the following thread:
viewtopic.php?f=1&t=416

hp
Posts: 26
Joined: Thu Jan 15, 2015

28 Apr 2015

Hi Dmitri,


Could i use same method if i am using site template in different site collection?


thanks

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 Apr 2015

Yes, you can. But if you use SharePoint on-premises, I'd recommend to provision forms programmatically through our web service as described in the following thread:
viewtopic.php?f=1&t=416

hp
Posts: 26
Joined: Thu Jan 15, 2015

06 May 2015

Hi Dimetry,

I applied the changes to forms. but when you open the display form of an item and try to click on edit properties from there it throws an error. if you open edit form directly it works. Error is "something went wrong... The file or folder name contains characters that are not permitted. Please use a different name." Please advise.


thanks!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests