-
Notifications
You must be signed in to change notification settings - Fork 308
Expand file tree
/
Copy pathdocument-variable-name.yml
More file actions
53 lines (52 loc) · 1.12 KB
/
Copy pathdocument-variable-name.yml
File metadata and controls
53 lines (52 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
49
50
51
52
53
metadata:
title: Document as variable
documentation: "https://docassemble.org/docs/documents.html#variable name"
example start: 2
example end: 4
---
objects:
- authority: Individual
---
mandatory: True
question: Ok, all done.
subquestion: |
% if submit_to_authority:
% if sent_ok:
Your document was sent.
% else:
For some reason, I was not able to
send your document.
% endif
% else:
Ok, I will not send your document to
The Man.
% endif
---
question: Your document is ready.
subquestion: |
Would you like to submit the document
below to the authorities?
yesno: submit_to_authority
attachment:
- name: A *hello world* document
filename: Hello_World_Document
variable name: hello_file
content: |
Hello, world!
---
code: |
sent_ok = send_email(to=[authority],
template=my_email,
attachments=[hello_file])
---
code: |
authority.name.first = 'The'
authority.name.last = 'Man'
authority.email = 'man@hegemony.gov'
---
template: my_email
subject: |
A PDF file that says hello world!
content: |
Dear Authority,
Please see attached.