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.
CAUTION:
You cannot select or assign data from a Memo-type data entry field if it was the last field to have focus. If you set up a @Focus function, and the Memo field was the last edited field, the focus does not go to that field.