Changes the Theme for the Project. This will change all the forms in the Project that are set to use the Project's Theme to the one at the specified path.
The path should be relative to the root of the 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:project.setTheme(...) must be on the last line of a script. After the setTheme 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 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:
project.setTheme(...)
must be on the last line of a script. After the setTheme function call is executed, the next script configured in the server event will be executed.For further information see:
JavaScript example: