Review main Merged

70196[FEATURE] Introduce TCA option "min"

Nikita Hovratov CR +2 V +2 Hard +345 −18 updated 08/03/22, 15:56

Commit message

The TCA option "min" allows to define a minimum
number of characters a text field should have. This
effectively adds a "minlength" attribute to the
input field. If you are short on characters, an
alert badge will show you how many characters are
missing. The FormEngine won't allow saving fields
which don't provide enough characters. Zero
characters (empty fields) are allowed, as this is
the same behaviour as the html attribute has. If
empty fields shouldn't be allowed, a combination
with "required=true" is necessary.

This option works for default type="input" fields
and type="text" fields, except if RTE is enabled.

DataHandler will also take care for server-side
validation and reset the value to an empty string,
if "min" is not reached.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 17