string
Validates that the value is a string.
Usage
vue
<VfText name="comment" label="Comment" rules="string" />vue
<template>
<VfText name="comment" label="Comment" rules="string" />
</template>ts
{
comment: {
type: 'text',
label: 'Comment',
rules: 'string',
},
}Error Messages
| Key | Default Message |
|---|---|
rule_string_error | The {attribute} must be a string. |