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
- string—CLI prompt text.
Return Value
- $user-input—Text typed by the user and stored as a string.
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: ");
Hide Navigation Pane
Show Navigation Pane
Download
SHA1