Form.clientScriptFileId
Property Description |
The internal file ID of client script file to be used in this form. Use this property when attaching an on demand client script to a server script.
Note:
If you deploy a client script to a form using Form.clientScriptFileId or Form.clientScriptModulePath, using the N/log Module adds the logs to the deployment of the parent script. The parent script can be either a beforeLoad user event script or a SuiteScript 2.x Suitelet Script Type. |
Type |
number |
Supported Script Types |
Suitelets User event scripts -beforeLoad entry point For more information, see SuiteScript 2.x Script Types. |
Module |
|
Since |
2015.2 |
Errors
Error Code |
Thrown If |
---|---|
|
You attempted to set this value when the Form.clientScriptModulePath property value has already been specified. For more information, see Form.clientScriptModulePath. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/serverWidget Module Script Samples.
//Add additional code
...
var form = serverWidget.createForm({
title : 'Simple Form'
});
form.clientScriptFileId = 32;
...
//Add additional code