-
Notifications
You must be signed in to change notification settings - Fork 307
Expand file tree
/
Copy pathfruit-template-alt-1.yml
More file actions
48 lines (47 loc) · 1.12 KB
/
Copy pathfruit-template-alt-1.yml
File metadata and controls
48 lines (47 loc) · 1.12 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
metadata:
title: Fill fields with Mako
short title: Fill
documentation: "https://docassemble.org/docs/documents.html#template code"
example start: 7
example end: 7
---
question: |
Assembling a document from a PDF
template
subquestion: |
This interview will fill fields in
a .pdf template. You can
[download the template] to see what
it looks like.
[download the template]: ${ url_of('fruit_template.pdf') }
field: introduction_shown
---
question: What is your favorite fruit?
fields:
Favorite fruit: favorite_fruit
---
question: What is your favorite vegetable?
fields:
Favorite vegetable: favorite_veggie
---
question: What is your favorite legume?
fields:
Favorite legume: favorite_legume
---
question: What is your favorite fungus?
fields:
Favorite fungus: favorite_fungus
---
mandatory: True
code: |
introduction_shown
---
mandatory: True
question: Here is your document.
attachment:
pdf template file: fruit_template.pdf
fields:
- favorite_fruit: ${ favorite_fruit }
- favorite_veggie: ${ favorite_veggie }
- favorite_legume: ${ favorite_legume }
- favorite_fungus: ${ favorite_fungus }