DS Server

Javascript: TXTextControl.SaveSettings.masterPassword Property

Property|Introduced in 28.0

Description

Specifies a password for the document's access permissions.

Syntax

<string> TXTextControl.SaveSettings.masterPassword

Examples

The following example demonstrates TXTextControl.SaveSettings.masterPassword in a practical document-editing workflow. It specifies a password for the document's access permissions.

function inspectMasterPassword(saveSettings) {
    const masterPassword = saveSettings.masterPassword;
    console.log("master password:", masterPassword);
}