| Use: | Returns the remaining number of characters that can be entered in a text- or memo-type data entry field | 
| Syntax: | 
{FIELDLEN( «field» )} 
    For a text-type field, you must use this function with the LEN function: 
    {FIELDLEN( «field» )} - {LEN( «string» )}
    For a memo-type field, you must use this function with the MEMOLEN function: 
    {FIELDLEN( «field» )} - {MEMOLEN( «string» )}
  | 
| Arguments: | 
«field»
    Field to be evaluated
  | 
| Returns: | The number of characters that are available after an entry has been made in the field | 
| Example 1: | 
Text field = template_name_.txt_field
Text field length = 100
Alert trigger/Assign Field Value =
    { FIELDLEN ( {template_name_.txt_field ) } - {LEN ( {template_name_.txt_field } ) }
Characters entered in field at run time in NextGen® Enterprise EHR = 7   Result: Alert message displays 93  | 
| Example 2: | 
Memo field = template_name_.memo_field
Memo field default length = 10,000
Alert trigger/Assign Field Value =
    { FIELDLEN ( {template_name_.memo_field ) } - {MEMOLEN ( {template_name_.memo_field } ) }
Characters entered in field at run time in NextGen® Enterprise EHR = 25   Result: Alert message displays 9,975  |