-
Notifications
You must be signed in to change notification settings - Fork 304
Expand file tree
/
Copy pathsomeone-already-mentioned.yml
More file actions
61 lines (59 loc) · 1.4 KB
/
someone-already-mentioned.yml
File metadata and controls
61 lines (59 loc) · 1.4 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
metadata:
title: Object with disable others
short title: Object
documentation: "https://docassemble.org/docs/fields#object"
example start: 1
example end: 3
---
objects:
cook: Individual
gardener: Individual
maid: Individual
---
question: |
Who is the cook?
fields:
- Somebody already mentioned: cook
datatype: object
disable others: True
choices: |
[person for person in [cook, gardener, maid] if person.name.defined()]
- First Name: cook.name.first
- Last Name: cook.name.last
- Suffix: cook.name.suffix
required: False
code: name_suffix()
---
question: |
Who is the gardener?
fields:
- Somebody already mentioned: gardener
datatype: object
disable others: True
choices: |
[person for person in [cook, gardener, maid] if person.name.defined()]
- First Name: gardener.name.first
- Last Name: gardener.name.last
- Suffix: gardener.name.suffix
required: False
code: name_suffix()
---
question: |
Who is the maid?
fields:
- Somebody already mentioned: maid
datatype: object
disable others: True
choices: |
[person for person in [cook, gardener, maid] if person.name.defined()]
- First Name: maid.name.first
- Last Name: maid.name.last
- Suffix: maid.name.suffix
required: False
code: name_suffix()
---
mandatory: True
question: |
The cook is ${ cook }.
The gardener is ${ gardener }.
The maid is ${ maid }.