jcs:get-input() Function

Syntax

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

Description

Invoke a CLI prompt and wait for user input. The user input is defined as a string for subsequent use. This function cannot be used with event scripts.

Parameters

Return Value

In the following example, the user is prompted to enter a login name. The user’s input is stored in the variable $username:

var $username = jcs:get-input("Enter login id: ");