diff options
author | Daniel Weipert <code@drogueronin.de> | 2022-01-05 23:12:23 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2022-01-10 11:29:13 +0100 |
commit | d6c5c7735e3207ead7759375e444bc6b72045e49 (patch) | |
tree | bcaded65f8279dde16750699cd7bbf4886a94e20 /templates/form-paged | |
parent | 43ec8517cbc42093ad1f17063495f79e6eddf1cf (diff) |
Validate fields by pattern and add more example fields
Diffstat (limited to 'templates/form-paged')
-rw-r--r-- | templates/form-paged/fields/second.toml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/form-paged/fields/second.toml b/templates/form-paged/fields/second.toml index bbc6ea7..cdeb9f0 100644 --- a/templates/form-paged/fields/second.toml +++ b/templates/form-paged/fields/second.toml @@ -1,3 +1,17 @@ [field.text] placeholder = "Text placeholder" +[field.text.validation] +pattern = "\\w+" + +[field.manythings] +type = "select" + +[field.manythings.options] +first = "First level" +second = "Second level" + +[field.multiplethings] +type = "checkbox" +options = ["thing-1", "thing-2", "thing-3"] + |