-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathfields-mc-exclude.yml
More file actions
43 lines (43 loc) · 912 Bytes
/
fields-mc-exclude.yml
File metadata and controls
43 lines (43 loc) · 912 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
43
metadata:
title: With exclusion
short title: With exclusion
example start: 2
example end: 4
documentation: "https://docassemble.org/docs/fields.html#exclude"
---
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, assuming he does not like
${ favorite_fruit }?
fields:
- Fruit: favorite_fruit_of_brother
datatype: radio
code: |
myoptions
exclude: |
favorite_fruit
---
code: |
myoptions = [
{'apple': "Apples"},
{'orange': "Oranges"},
{'pear': "Pears"}
]