Field.type
Property Description |
Returns the type of a body or sublist field. For example, the value can return The maximum character limit for select field types is 801. |
Type |
string (read-only) |
Module |
|
Sibling Object Members |
|
Since |
2015.2 |
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/record Module Script Samples.
// Add additional code
...
var objRecord = record.load({
type: record.Type.SALES_ORDER,
id: 275
});
var objSublist = objRecord.getSublist({
sublistId: 'item'
});
var objField = objSublist.getField({
fieldId: 'item'
});
if(objField.type === 'checkbox'){
//Perform an action
}
...
// Add additional code