-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathfields-mc-6.yml
More file actions
40 lines (40 loc) · 949 Bytes
/
fields-mc-6.yml
File metadata and controls
40 lines (40 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
metadata:
title: Multiple choice with code and help
short title: MC
example start: 4
example end: 4
documentation: "https://docassemble.org/docs/fields.html#code"
---
mandatory: True
question: |
Your favorite fruit is the
${ favorite_fruit }, which is
the king of all fruits.
subquestion: |
Your brother, who is not so wise,
is partial to the
${ favorite_fruit_of_brother }.
---
question: |
What is your favorite fruit?
fields:
- Fruit: favorite_fruit
datatype: radio
code: |
myoptions
---
question: |
What is your brother's favorite
fruit?
fields:
- Fruit: favorite_fruit_of_brother
datatype: radio
code: |
myoptions
---
code: |
myoptions = [
['apple', 'Apples', None, 'Apples are good in pies.'],
['orange', 'Oranges', None, 'Oranges are a type of citrus fruit.'],
['pear', 'Pears', None, 'Pears are an acquired taste.']
]