You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/fields/validate.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,23 +95,23 @@ attached to the field by specifying `warning` or `error` in the return array.
95
95
96
96
## Built-in Validations
97
97
98
-
|<divstyle="width:160px;">Key</div>|Description|
99
-
|--|--|
100
-
|`color`|Valid HTML hex color. Works with [color_rgba](../../core-fields/color-rgba.md) field (opacity)|
101
-
|`comma_numeric`|Value is numeric separated by commas|
102
-
|`css`|CSS|
103
-
|`date`|Date|
104
-
|`email`|Valid Email|
105
-
|`html_custom`|HTML validation - See [html_custom example](validate.md#html_custom-example)|
106
-
|`js`|JavaScript|
107
-
|`no_html`|No HTML is permitted|
108
-
|`no_special_chars`|Alpha Numeric, excluding special characters|
109
-
|`not_empty`|If the value is empty|
110
-
|`numeric`|Value is numeric|
111
-
|`preg_replace`|Perform a replacement on the contents based on a regex pattern. You can test your regex patterns on a website like [phprex](https://phphub.net/regex/). See [preg_replace Example](validate.md#preg-replace-example)|
112
-
|`str_replace`|Return a string after running through a `str_replace`. See [str_replace Example](validate.md#str-replace-example)|
113
-
|`unique_slug`|To generate a unique slug - optional `'flush_permalinks' => true` argument can be added to force a flush permalinks on successful save|
|`color`|Valid HTML hex color. Works with [color_rgba](../../core-fields/color-rgba.md) field (opacity)|
101
+
|`comma_numeric`|Value is numeric separated by commas|
102
+
|`css`|CSS|
103
+
|`date`|Date|
104
+
|`email`|Valid Email|
105
+
|`html_custom`|HTML validation - See [html_custom example](validate.md#html-custom-example)|
106
+
|`js`|JavaScript|
107
+
|`no_html`|No HTML is permitted|
108
+
|`no_special_chars`|Alpha Numeric, excluding special characters|
109
+
|`not_empty`|If the value is empty|
110
+
|`numeric`|Value is numeric|
111
+
|`preg_replace`|Perform a replacement on the contents based on a regex pattern. You can test your regex patterns on a website like [phprex](https://phphub.net/regex/). See [preg_replace Example](validate.md#preg-replace-example)|
112
+
|`str_replace`|Return a string after running through a `str_replace`. See [str_replace Example](validate.md#str-replace-example)|
113
+
|`unique_slug`|To generate a unique slug - optional `'flush_permalinks' => true` argument can be added to force a flush permalinks on successful save|
0 commit comments