-
Notifications
You must be signed in to change notification settings - Fork 254
/
session-local.yml
45 lines (43 loc) · 933 Bytes
/
session-local.yml
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
metadata:
title: Session local
short: Session
documentation: "https://docassemble.org/docs/special.html#session_local"
example start: 1
example end: 5
---
mandatory: True
code: |
multi_user = True
---
mandatory: True
code: |
session_local.how_doing
final_screen
---
question: |
How are you doing today?
field: session_local.how_doing
choices:
- Well: well
- Poorly: poor
---
question: |
What is your favorite fruit?
fields:
- Favorite fruit: favorite_fruit
---
event: final_screen
question: |
Your favorite fruit is ${ favorite_fruit }
subquestion: |
% if session_local.how_doing == 'well':
I am glad you are doing well.
% else:
I am sorry you are poorly today.
% endif
Try re-joining this interview by
using a different web browser, an
incognito tab, or by closing your
browser application and opening it
again, and visiting this URL:
[${ interview_url() }](${ interview_url() })