Unit Price Text

Defined under the namespace Scandit.Datacapture.Label

UnitPriceText
class UnitPriceText : TextField

Added in version 8.0.0

A specialized text field for capturing unit price information from labels. This predefined field type is optimized for recognizing individual item prices on retail labels.

constructor(name)
constructor(name: string)

Added in version 8.0.0

name
get name(): string

Added in version 8.0.0

The name of this field definition.

valueRegexes
valueRegexes: string[]

Added in version 8.0.0

The regexes that identify the target string in the scanned content.

isOptional
get isOptional(): boolean

Added in version 8.0.0

Whether the field is optional or mandatory. This is helpful when certain fields may not be present on every scan.

numberOfMandatoryInstances
numberOfMandatoryInstances: number | null

Added in version 8.3.0

The minimum number of instances of this field that must be captured for the label to be considered complete. This is useful for fields that may appear multiple times on a label, such as multiple serial numbers or repeated information.

anchorRegexes
anchorRegexes: string[]

Added in version 8.0.0

Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same regex (e.g., when both packaging and expiry dates are present).