-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathfields-mc-7.yml
More file actions
42 lines (41 loc) · 872 Bytes
/
fields-mc-7.yml
File metadata and controls
42 lines (41 loc) · 872 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
41
42
metadata:
title: Multiple choice with code and default
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",
'default': True},
{'orange': "Oranges"},
{'pear': "Pears"}
]