NextGen Knowledge Center

NUMPAD Function

Use:Displays a simple or normal number pad for the user to select a numeric value. The simple number pad contains only the numbers 0-9, plus and minus signs, a decimal point, and a Clear button. The normal number pad contains the same options plus percentages and additional numbers in increments of 5, 10, and 100.
Syntax:
{NUMPAD( «calling field» , «do listpick» , «default» , «caption» , «simple_or_normal» )}
Arguments:

«calling field» 
    For a list pick event, the template field that the pick is made from
«do listpick» (optional)
    1 = true
    0 = false
«default» (optional)
    Default value displayed in the number pad when it opens
«caption» (optional)
    Title of the number pad
«simple_or_normal» (optional)
    1 = simple
    0 = normal
    If no parameters are entered, the function uses the simple number pad.
Returns:A numeric value that can be stored in a text, numeric, or decimal field
Example 1:

Field = txt_field
{NUMPAD( {template_name_.txt_field}, 0, 0, Please select a number, 0 )}

Result:

The normal number pad appears.

The selected/calculated number is entered into the txt_field.

Example 2:

Fields = txt_field, List Pick event on txt_another_field
Alert to be triggered when a number is selected.
Assign Field Value trigger:
{NUMPAD( {template_name_.txt_another_field}, 1, 0, Choose a number, 1 )}

Result:

The simple number pad is displayed. The selected/calculated number is entered into the txt_field. If the result is greater than zero, the List Pick event on txt_another_field displays an alert.