Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
hiddentrue

...

validatesUnscaledValue - validate

...

the amount of numbers before the comma.

Overview

Defines that precision unscale value (number of digits for integer or number of digits before '.' for decimal) of field value must be in range definied by options.

Attributes

name

type

required

default value

description

min

integer

no

none

Minimum value.

is

integer

no

none

Exact value.
When this option is definied, it overwrites 'min' and 'max' options.

max

integer

no

none

Maximum value.

message

string

no

none

Message that will be displayed in case of error.

Example

Code Block
themeEclipse
languagexml
themeEclipse
linenumberstrue

<validatesPrecision<validatesUnscaledValue min="1" max="3" message="error.invalid.age" />
<validatesPrecision<validatesUnscaledValue is="5" message="error.invalid.invoice.number" />