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 |
Suitelets For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2016.1 |
Parameters
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
Object[] |
required |
An object containing an array of name/value pairs that map field names to field values. |
2015.2 |
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 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