Changes the Presentation Template used by the current form to the one at the specified path.
The path should be relative to the root of the Form's project or one of its dependent projects. It must start with a forward slash as a path separator.
The new Theme must have the same Framework and collection of Property Sets as the current Theme otherwise the Form may not look as expected.
Important:form.setPresentationTemplatePath(...) must be on the last line of a script. After the setPresentationTemplatePath function call is executed, the next script configured in the server event will be executed.
The path should be relative to the root of the Form's project or one of its dependent projects. It must start with a forward slash as a path separator.
The new Theme must have the same Framework and collection of Property Sets as the current Theme otherwise the Form may not look as expected.
Important:
form.setPresentationTemplatePath(...)must be on the last line of a script. After the setPresentationTemplatePath function call is executed, the next script configured in the server event will be executed.For further information see:
JavaScript example:
form.setPresentationTemplatePath("/presentation/myPresentationTemplate");