Sets the index of the selected item of the SelectionFormField. If the property value is -1, no item is selected and the currently selected item is deselected.

<void> SelectionFormField.setSelectedIndex(<Boolean> index, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
index The index of the selected item.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.

Further Reading

Learn more about the Javascript: SelectionFormField.setSelectedIndex Method in the Text Control Blog: