WebForm.setTheme

Changes the Theme 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.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:

 form.setTheme("/themes/myTheme");
 

Parameters

java.lang.String  theme,