Javascript code to specify Editor set/Editor
Description
Specify the Javascript code to run to set the Editor Set and Editor name. Your must return an array containing the Editor set and Editor name to use to edit the field.
Discussion
If the Method for specifying Editor set/Editor is set to 'Javascript code', then you must define the Editor set/Editor for the field in the Javascript code to specify Editor set/Editor property.
The Javascript code to specify Editor set/Editor for a field must return an array with two items. The first item in the array is the Editor Set. The second item in the array is the Editor. For example:
return ['EDITORSET_1','LISTEDITOR'];
Your code can also reference the settings variable (an object). The settings variable contains the settings object for this field. settings is passed to the events that open the Editor Set and Editor for this field when it is edited.
Your code can change values in the settings object and add new settings. For example:
var currentField = settings.formView.active.name; var currentFieldInfo = settings.formView.active.info;