config.yml
file. Note that
YAML syntax
allows lists and objects to be written
in block or inline style, and the code
samples below include a mix of
both.
required
: specify as false
to make a field optional;
defaults to true
hint
: optionally add helper text
directly below a widget. Useful
for including instructions.
Accepts markdown for bold,
italic, strikethrough, and
links.
pattern
: add field validation by
specifying a list with a
regex pattern
and an error message; more
extensive validation can be
achieved with
custom widgets​
yaml - label:
"Title" name:
"title"
widget:
"string"
pattern:
['.{12,}',
"Must have at least
12
characters"]
boolean
default
: accepts true
or false
; defaults to false
when required
is set to false