Script
If you choose "Edit script" from menu while you are editing by the form editor, the file which extension .js was added to the same name at template temporary edit file created and opens script editor. Please refer to the item of "Script" for details about functions and classes.
Script is not applied to form only by editing and saving. When edit and save finish, please do not forget specifying the saved file at the "Script" of form property.