DS Server

Javascript: TXTextControl.LoadSettings.masterPassword Property

Property|Introduced in 28.0

Description

Specifies the password when the document is restricted with access permissions.

Syntax

<number> TXTextControl.LoadSettings.masterPassword

Examples

The following example demonstrates TXTextControl.LoadSettings.masterPassword in a practical document-editing workflow. It specifies the password when the document is restricted with access permissions.

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