summaryrefslogtreecommitdiff
path: root/templates/form-paged
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-01-05 23:12:23 +0100
committerDaniel Weipert <code@drogueronin.de>2022-01-10 11:29:13 +0100
commitd6c5c7735e3207ead7759375e444bc6b72045e49 (patch)
treebcaded65f8279dde16750699cd7bbf4886a94e20 /templates/form-paged
parent43ec8517cbc42093ad1f17063495f79e6eddf1cf (diff)
Validate fields by pattern and add more example fields
Diffstat (limited to 'templates/form-paged')
-rw-r--r--templates/form-paged/fields/second.toml14
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"]
+