Assistant.updateDefaultValues(values)

Method Description

Sets the default values of an array of fields that are specific to the assistant.

Returns

void

Supported Script Types

SuiteScript 2.x Suitelet Script Type

Governance

None

Module

N/ui/serverWidget Module

Since

2016.1

Parameters

Parameter

Type

Required / Optional

Description

Since

values

Object[]

required

An object containing an array of name/value pairs that map field names to field values.

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/ui/serverWidget Module Script Samples.

          //Add additional code 
...
var assistant = serverWidget.createAssistant({
    title : 'Simple Assistant'
});
assistant.addField({
    id : 'idname',
    type : serverWidget.FieldType.TEXT,
    label : 'Sample label'
});
assistant.updateDefaultValues({
    idname : 'New Default Value'
});
...
//Add additional code 

        

Related Topics

General Notices