From d6c5c7735e3207ead7759375e444bc6b72045e49 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 5 Jan 2022 23:12:23 +0100 Subject: Validate fields by pattern and add more example fields --- templates/form-paged/fields/second.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'templates') 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"] + -- cgit v1.2.3