jcs:get-secret() Function

Syntax

var $user-input = jcs:get-secret(string);

Description

Invoke a CLI prompt and wait for user input. Unlike the jcs:get-input() function, the input is not echoed back to the user, which makes the function useful for obtaining passwords. The user input is defined as a string for subsequent use. This function cannot be used with event scripts.

Parameters

Return Value

The following example shows how to prompt for a password that is not echoed back to the user:

var $password = jcs:get-secret("Enter password: ");

Related Topics