NextGen Knowledge Center

Focus Function

The @Focus function enables you to assign a value to or from the last edited field on a template to have focus. This function is typically used on an Assign Field Value trigger on a button or active image field. For example, this function can be used with a Vital Signs number pad that assigns values to height, weight, and temperature.

You can select this function in the following ways:
  • You can select @Focus from the Assign To field list on the Assign Field Value trigger window.
  • You can select @Focus Last Edit Field with Focus in the Functions list to include @Focus in the value calculation for an Assign Field Value trigger, the condition for any trigger, or the function body for a macro function.