From 5f315f384a409cc6385ec3379d9ec6214eff7666 Mon Sep 17 00:00:00 2001 From: Martijn van de Rijdt Date: Wed, 7 Mar 2018 10:51:45 -0700 Subject: [PATCH] Added form="guidance" for more versatile hinting, closes #132 --- _sections/70-languages.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/_sections/70-languages.md b/_sections/70-languages.md index 183c422..730dcb6 100644 --- a/_sections/70-languages.md +++ b/_sections/70-languages.md @@ -60,20 +60,26 @@ It is even allowed to intermix both a `ref` and a regular value. In this case, i {% endhighlight %} In general, all text ids must be replicated across all languages. It is sometimes only a parser warning if you do not, but it will likely lead to headaches. -Even within a single language, it is helpful to have multiple 'forms' of the same string. For example, a verbose phrasing used as the caption when answering a question, but a short, terse phrasing when that question is shown in the form summary. This can be done as follows: + +Even within a single language, it is helpful to have multiple 'forms' of the same string. For example, a verbose phrasing used as the caption when answering a question, but a short, terse phrasing when that question is shown in the form summary. This can be done using the `form` attribute, as follows: {% highlight xml %} - - How old are you? + + How old are you? Age + + Enter a number + If the age is less than 18, the remainder of the survey will be hidden. + {% endhighlight %} -There are two form attribute options for text strings: +There are three `form` attribute options for text strings: -| text type | form attribute -|-----------------|----------------| -| single version | _no form attr_ | -| short version | `short` | +| text type | attribute | description | +| ------------------------ | -------------- |---------------------------- +| regular | _none_ | Supported for `