Required Variables: Ensure Critical Fields Are Always Filled

You can mark variables as required so the input form cannot be submitted while important fields are empty. When a required field is left empty, PhraseExpander keeps the input form open and shows the message This field is required.

Required fields can be used with text, list, and grid variables.

Use required variables when a template needs information that should not be skipped, such as a patient name, case number, visit reason, recipient name, or any other value that must be present in the final text.

Animated preview showing PhraseExpander displaying required-field validation for the Name and Gender fields.

Text Variable

For a text variable, Required means the text field cannot be left blank.

  1. Open the template where you want to request the required information.
  2. Create or edit a text variable.
  3. In the fill-in variable window, check Required.
  4. Click OK to save the variable.
Insert new fill-in variable window with the Required checkbox selected.

When the template runs, PhraseExpander marks the field as required. If the user tries to continue without entering a value, the validation message appears below the field.

List Variable

For a list variable, Required means at least one element must be checked.

  1. Open the template where you want to request a required list selection.
  2. Create or edit a list variable.
  3. In the variable window, check Required.
  4. Click OK to save the variable.
Edit variable window for a required list variable

If no item is checked, the PhraseExpander input form submission is blocked.

Grid Variable

For a grid variable, Required means at least one element must be checked.

  1. Open the template where you want to request a required grid selection.
  2. Create or edit a grid variable.
  3. In the variable window, check Required.
  4. Click OK to save the variable.
Edit variable window for a required grid variable

If no item is checked, the PhraseExpander input form submission is blocked.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us