Skip to content

different

Field validator

All field validators

The value must differ from the value of another named field of the same type.

Written as
"Validators": [{ "Type": "different" }]
In Liquid
{{ different_validator }} — the typed object a template reads for this rule.
Use with
checkboxlist, code, date, datetime, dictionary, emails, fieldset, html, labels, objecttype, path, select, text, textarea, textlist, timezone, url

Properties

Accepted in addition to the shared properties every definition carries.

Property Required Description
Message Text shown when the value fails this check.
FieldID Names the sibling field compared against.

Notes

Compares the stored value as a string. On a structured type such as a fieldset or a list the comparison is against the serialized value, which is rarely what an author wants.