scriptcustomfield
This topic is part of the bundleinstallationscript SDF custom object documentation.
For information about creating bundle installation scripts, see SuiteScript 2.x Bundle Installation Script Type.
Feature Dependencies
-
SERVERSIDESCRIPTING
Attributes
Name |
Type |
Required / Optional |
Description |
---|---|---|---|
scriptid |
string |
Required |
This attribute value can be up to 40 characters long. The default value is ‘custscript’. |
Fields
Name |
Type |
Required / Optional |
Description |
---|---|---|---|
fieldtype |
single-select list |
Required |
For information about possible values, see generic_customfield_fieldtype. The default value is 'TEXT'. |
label |
single-select list |
Required |
This field value can be up to 200 characters long. This field accepts references to the string custom type. |
selectrecordtype |
single-select list |
Required (conditionally) |
This field is mandatory when the fieldtype value is equal to any of the following lists or values: SELECT, MULTISELECT. This field accepts references to the following custom types: For information about other possible values, see generic_customfield_selectrecordtype. |
applyformatting |
boolean |
Optional |
The default value is T. |
defaultchecked |
boolean |
Optional |
The default value is F. |
defaultselection |
single-select list |
Optional |
This field accepts references to the following custom types: |
defaultvalue |
string |
Optional |
|
description |
string |
Optional |
|
displaytype |
single-select list |
Optional |
For information about possible values, see generic_customfield_displaytype. The default value is 'NORMAL'. |
dynamicdefault |
single-select list |
Optional |
For information about possible values, see generic_customfield_dynamicdefault. |
help |
single-select list |
Optional |
This field accepts references to the string custom type. |
linktext |
string |
Optional |
|
minvalue |
string |
Optional |
|
maxvalue |
string |
Optional |
|
storevalue |
boolean |
Optional |
The default value is T. |
accesslevel |
single-select list |
Optional |
For information about possible values, see generic_accesslevel_searchlevel. The default value is '2'. |
checkspelling |
boolean |
Optional |
The default value is F. |
displayheight |
integer |
Optional |
This field value must be greater than or equal to 0. |
displaywidth |
integer |
Optional |
This field value must be greater than or equal to 0. |
isformula |
boolean |
Optional |
The default value is F. |
ismandatory |
boolean |
Optional |
The default value is F. |
maxlength |
string |
Optional |
|
onparentdelete |
single-select list |
Optional |
For information about possible values, see generic_customfield_onparentdelete. |
searchcomparefield |
single-select list |
Optional |
For information about possible values, see generic_standard_field. |
searchdefault |
single-select list |
Optional |
This field accepts references to the savedsearch custom type. |
searchlevel |
single-select list |
Optional |
For information about possible values, see generic_accesslevel_searchlevel. The default value is '2'. |
setting |
single-select list |
Optional |
For information about possible values, see script_setting. |
Structured Fields
Structured fields are elements that usually contain subfields or groups of fields. They are similar to regular fields but have their own embedded structure. The following structured fields are supported: