# Javascript: TXTextControl.saveDocumentQuestionDialogEnabled Property

> Obsolete. This property will be removed in one of the next versions. Gets or sets if a confirmation dialog should be shown before discarding unsaved changes.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.saveDocumentQuestionDialogEnabled Property
- **197 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/savedocumentquestiondialogenabled-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/savedocumentquestiondialogenabled-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/savedocumentquestiondialogenabled-property/llms-full.txt

---

### Description

`Obsolete. This property will be removed in one of the next versions.` Gets or sets if a confirmation dialog should be shown before discarding unsaved changes.

### Syntax

```javascript
<boolean> TXTextControl.saveDocumentQuestionDialogEnabled
```

### Examples

The following example demonstrates `TXTextControl.saveDocumentQuestionDialogEnabled` in a practical document-editing workflow. Obsolete. This property will be removed in one of the next versions. Gets or sets if a confirmation dialog should be shown before discarding unsaved changes.

```javascript
const saveDocumentQuestionDialogEnabled = tXTextControl.saveDocumentQuestionDialogEnabled;
console.log("save document question dialog enabled:", saveDocumentQuestionDialogEnabled);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.saveDocument Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/savedocument-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.saveSelection Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/saveselection-method/llms-full.txt)
