{"record":{"id":"f7a732ac71fe3fd7","repo":"Semantic-Org/Semantic-UI","slug":"name-must-be-at-least-rulevalue-characters","errorCode":null,"errorMessage":"{name} must be at least {ruleValue} characters","messagePattern":"(.+?) must be at least (.+?) characters","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/definitions/behaviors/form.js","lineNumber":1270,"sourceCode":"\n  prompt: {\n    empty                : '{name} must have a value',\n    checked              : '{name} must be checked',\n    email                : '{name} must be a valid e-mail',\n    url                  : '{name} must be a valid url',\n    regExp               : '{name} is not formatted correctly',\n    integer              : '{name} must be an integer',\n    decimal              : '{name} must be a decimal number',\n    number               : '{name} must be set to a number',\n    is                   : '{name} must be \"{ruleValue}\"',\n    isExactly            : '{name} must be exactly \"{ruleValue}\"',\n    not                  : '{name} cannot be set to \"{ruleValue}\"',\n    notExactly           : '{name} cannot be set to exactly \"{ruleValue}\"',\n    contain              : '{name} must contain \"{ruleValue}\"',\n    containExactly       : '{name} must contain exactly \"{ruleValue}\"',\n    doesntContain        : '{name} cannot contain  \"{ruleValue}\"',\n    doesntContainExactly : '{name} cannot contain exactly \"{ruleValue}\"',\n    minLength            : '{name} must be at least {ruleValue} characters',\n    length               : '{name} must be at least {ruleValue} characters',\n    exactLength          : '{name} must be exactly {ruleValue} characters',\n    maxLength            : '{name} cannot be longer than {ruleValue} characters',\n    match                : '{name} must match {ruleValue} field',\n    different            : '{name} must have a different value than {ruleValue} field',\n    creditCard           : '{name} must be a valid credit card number',\n    minCount             : '{name} must have at least {ruleValue} choices',\n    exactCount           : '{name} must have exactly {ruleValue} choices',\n    maxCount             : '{name} must have {ruleValue} or less choices'\n  },\n\n  selector : {\n    checkbox   : 'input[type=\"checkbox\"], input[type=\"radio\"]',\n    clear      : '.clear',\n    field      : 'input, textarea, select',\n    group      : '.field',\n    input      : 'input',\n    message    : '.error.message',","sourceCodeStart":1252,"sourceCodeEnd":1288,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/behaviors/form.js#L1252-L1288","documentation":"Default prompt for the Semantic UI Form `minLength` rule (settings.rules.minLength, form.js:1486). Shown when `value.length < requiredLength` (the `{ruleValue}`). Guarded against undefined value (returns false).","triggerScenarios":"`{type:'minLength[8]'}` with input `abc` (3 < 8). Empty/short paste, or counting characters where the user counted bytes/words.","commonSituations":"Password minimum length, username minimums, multibyte characters counted differently than expected.","solutions":["Enter at least the required number of characters.","Confirm the bracket value is the intended minimum (not the maximum).","For multibyte safety, note `value.length` counts UTF-16 code units.","Add a custom `prompt`."],"exampleFix":"// before\nrules: [{ type: 'minLength[8]' }]  // 'abc' -> 'must be at least 8 characters'\n\n// after\nrules: [{ type: 'minLength[8]', prompt: 'Use at least 8 characters' }]","handlingStrategy":"validation","validationCode":"const min = 8;\nif (($field.val() || '').length < min) { /* warn */ }","typeGuard":"const meetsMinLength = (v, min) => String(v).length >= min;","tryCatchPattern":null,"preventionTips":["Show a live character counter.","Use exactLength when a fixed length is required.","Remember length counts UTF-16 code units for multibyte input."],"tags":["semantic-ui","form-validation","length","client-side"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}