# RequestActivationStateCallback Function

> Callback function for requests expecting an ActivationState value.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Function
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > RequestActivationStateCallback Function
- **262 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestactivationstatecallback/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestactivationstatecallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestactivationstatecallback/llms-full.txt

---

### Description

Callback function for requests expecting an [ActivationState](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/activationstate-enumeration/llms-full.txt) value.

### Syntax

```javascript
function(<ActivationState> activationState)
```

### Examples

The following example demonstrates `RequestActivationStateCallback` in a practical document-editing workflow. Callback function for requests expecting an ActivationState value.

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

function requestActivationStateCallback(activationState) {
    console.log("activation state:", activationState);
}

TXTextControl.getActivationState(requestActivationStateCallback, onTxError);
```

---

## Nearby

- **Previous:** [Javascript: Rectangle.size Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/rectangle/size-property/llms-full.txt)
- **Next:** [RequestApplicationFieldCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestapplicationfieldcallback/llms-full.txt)
