# Javascript: Barcode.getShowText Method

> Gets a value indicating whether the encrypted barcode text value is displayed below or above the barcode image or not.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: Barcode.getShowText Method
- **400 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getshowtext-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getshowtext-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getshowtext-method/llms-full.txt

---

### Description

Gets a value indicating whether the encrypted barcode text value is displayed below or above the barcode image or not.

### Syntax

```javascript
<void> Barcode.getShowText(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the value. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `Barcode.getShowText` in a practical document-editing workflow. It gets a value indicating whether the encrypted barcode text value is displayed below or above the barcode image or not.

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

function inspectShowText(barcode) {
    barcode.getShowText(
        function(result) {
            if (result) {
                console.log("get show text is available.");
            } else {
                console.warn("get show text is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: Barcode.getForeColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcode/getforecolor-method/llms-full.txt)
- **Next:** [Javascript: Barcode.getText Method](https://docs.textcontrol.com/ds-server/reference/javascript/barcode/gettext-method/llms-full.txt)
