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

SuiteScript 2.x Suitelet Script Type and SuiteScript 2.x User Event Script Type (beforeLoad(context))

Module

N/ui/serverWidget Module

Since

2015.2

Errors

Error Code

Thrown If

PROPERTY_VALUE_CONFLICT

You attempted to set this value when the Form.clientScriptModulePath property value has already been specified. For more information, see Form.clientScriptModulePath.

Syntax
Important:

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 

        

Related Topics

General Notices