The set text batch
widget is used to create multiple set text
widgets at once.
set text batch: COMMON_INSTRUCTIONS
SELECTALL. Select all that apply
SELECTONE. Select one
1. What types of books do you like to read?
instructions: __SELECTALL__
type: checkbox
1. Mystery
2. Sci-fi
3. Spy thrillers
4. Romance novels
5. Historical / biographical novels
2. Which is your favorite place to read?
instructions: __SELECTONE__
type: radio
1. At home
2. In the library
3. In a coffee shop
4. Outdoors (e.g., a local park)
97. Other {autoother: y}
Details
- To create a
set text batch
, first provide a descriptive ID for the widget. Then, define an ID for eachset text
, followed by the text it should display. Use alphanumerics or underscores for the IDs, no spaces allowed. - Each set text ID can then be piped elsewhere in the survey by including double underscores around the ID — e.g.,
__SELECTONE__
. -
Decorators can be included to modify each
set text
individually. - To modify all set texts defined with a
set text batch
, apply tags directly to the widget. -
Lists and sheets can also be used to define a series of set texts with
set text batch
. Include theitems from
tag to specify your source.
Additional examples
Adding decorators to individual set texts
The example below adds tooltips for each set text
using the explain
decorator.
set text batch: INSTRUMENTS SAX. saxophone { explain: A woodwind instrument } TBONE. trombone { explain: A brass instrument } SNARE. snare drum { explain: A percussion instrument }
Applying a tag to all set texts
By applying translate: n
at the widget level, each set text
will inherit the tag, indicating they should not be translated for other languages.
set text batch: FFCHAINS translate: n BK. Burger King TB. Taco Bell DD. Dunkin' Donuts
Using lists with 'set text batch'
Use the items from
tag with set text batch
to reference a list or sheet.
set list: INST SELECTALL. Select all that apply SELECTONE. Select one SELECTONEPERROW. Select one for each row set text batch: COMMONINSTRUCTIONS items from: INST
Comments
0 comments
Please sign in to leave a comment.