NextGen Knowledge Center

INPUTBOX Function

Use:Displays a custom window to gather input from the user.

The input box may include a picklist of available options.

Syntax:
{INPUTBOX( «string» , «caption» , «default» , «picklist» )}
Arguments:

«string»
    Message or instruction to display in the input box
«caption»
    Title of the input box
«default»
    Default value for the input field
«picklist» (optional)
    Existing picklist name or array variable as an alternate. If a picklist name is supplied, it displays a text box for users to type or select a value from the list displayed. 
    You can type "PICK: to display the  Picklist   window for selecting a picklist. 
Returns:A string value from the input box
Example 1:

Field = txt_field
{INPUTBOX( "Please type in a color" , "Color" , "" )}

Result:

An input box opens.

The value entered is entered into the txt_field. Text input is limited to 100 characters.

Example 2:

Field = txt_field
Array = @colors
{INPUTBOX( "Please type in a color" , "Color" , "" , @colors )}
Array: Red, Yellow, Blue, Green, Orange, Purple

Result:

An input box openss with picklist values from the @colors array.

The value entered or selected from the picklist goes into the txt_field.