From 740084419c821e080e55bd805e6ac03de7f90df8 Mon Sep 17 00:00:00 2001 From: John Spaetzel Date: Tue, 25 Aug 2020 17:29:47 -0700 Subject: [PATCH 1/2] add list to example of verbose syntax --- docs/forms.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/forms.md b/docs/forms.md index 04b274e..50ae313 100644 --- a/docs/forms.md +++ b/docs/forms.md @@ -193,15 +193,23 @@ If you want to use other Controls in a form specified using the above (verbose) {% raw %} ```yaml - trigger: ":form" - replace: "Hey {{form1.name}}, how are you?" + replace: "Hey {{form1.name}}, how are you? Do you like {{form1.fruit}}?" vars: - name: "form1" type: form params: - layout: "Hey {{name}}, how are you?" + layout: "Name: {{name}} \n +Fruit: {{fruit}}" fields: name: multiline: true + fruit: + type: list # or `choice` + values: + - Apples + - Bananas + - Oranges + - Peaches ``` {% endraw %} From 58751f306c0a380fe49fa0827f5624fe8a4501f6 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Wed, 26 Aug 2020 18:44:43 +0200 Subject: [PATCH 2/2] Remove unnecessary newline --- docs/forms.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/forms.md b/docs/forms.md index 50ae313..6e9f495 100644 --- a/docs/forms.md +++ b/docs/forms.md @@ -198,8 +198,7 @@ If you want to use other Controls in a form specified using the above (verbose) - name: "form1" type: form params: - layout: "Name: {{name}} \n -Fruit: {{fruit}}" + layout: "Name: {{name}} \nFruit: {{fruit}}" fields: name: multiline: true @@ -217,4 +216,4 @@ Note that **the `fields` parameter content is specified as the `form_fields` par ### macOS remarks -For the expansion to take place on macOS, you have to release the submit keys (CTRL+Enter) after submitting the form. \ No newline at end of file +For the expansion to take place on macOS, you have to release the submit keys (CTRL+Enter) after submitting the form.