NextGen Knowledge Center

PICKARRAY Function

Use:Displays the values of an existing Array variable in a picklist for user selection.
Syntax:
{PICKARRAY( «array» , «caption», «sorted», «default» )}
Arguments:

«array»  
    Name of Array variable
«caption»
    Title of the picklist
«sorted»
    1 = Sorts the picklist values in alphabetical or numerical order
    0 = Displays the picklist values as built in the Array variable
«default» 
    The default value to be returned if a selection is not made from the picklist.
Returns:The value selected from the picklist
Example:

Field = pickarraytest_field
Array = @colors
{PICKARRAY( @colors , "Colors", 1, "Red" )}
Set up an Assign Field Value trigger for the pickarraytest_field using the PICKARRAY function.

Result:

A picklist displays with values from the @colors array in their original order.

The value selected is entered into the pickarraytest_field. If no selection is made, the default value of Red is used.