Preparing search index...

    Function hasOcrUndoableValue

    • Whether a form field holds a value the user would lose if a scan replaced it.

      Follows the form's own empty states:

      • Text and image fields: non-blank string
      • Persons and time: not the defaultValueNumber sentinel
      • Nutrition: defined (an undefined table shows the empty state)
      • Ingredients: at least one row with a non-blank quantity

      Parameters

      • field: OcrUndoableField

        The undoable form field

      • value: unknown

        The field's current value

      Returns boolean

      true when the field is filled