DS Server

Javascript: SelectionFormField.setIsDropDownArrowVisible Method

Method|Introduced in 28.0

Description

Sets a value indicating whether a dropdown arrow is shown so that the user can select an item.

Syntax

<void> SelectionFormField.setIsDropDownArrowVisible(<Boolean> isDropDownArrowVisible, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
isDropDownArrowVisible

Indicates whether a dropdown arrow is shown so that the user can select an item.

callback

Optional. Is called when the operation completed.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates SelectionFormField.setIsDropDownArrowVisible in a practical document-editing workflow. It sets a value indicating whether a dropdown arrow is shown so that the user can select an item.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureIsDropDownArrowVisible(selectionFormField) {
    selectionFormField.setIsDropDownArrowVisible(
        true,
        function() {
            console.log("set is drop down arrow visible completed.");
        },
        onTxError
    );
}