Formify Docs

Upper Case

Convert a value to uppercase

Upper Case

The upperCase formatter converts a value to uppercase.

Usage

validationSchema: {
  code: { format: "upperCase" },
}

Result

InputResult
abc123ABC123

Things to know

  • Often combined with the trim step and applied on blur:
name: { format: [{ type: "trim", trigger: "onBlur", options: { mode: "both" } }, "upperCase"] }
  • The equivalent normalize: "uppercase" preset runs on every change instead.

On this page