-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathajax-flash.yml
More file actions
29 lines (29 loc) · 769 Bytes
/
ajax-flash.yml
File metadata and controls
29 lines (29 loc) · 769 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
metadata:
title: Flash message
documentation: "https://docassemble.org/docs/background.html#check in"
example start: 1
example end: 3
---
question: |
What is your favorite food?
fields:
- Favorite food: favorite_food
- Favorite drink: favorite_drink
check in: criticize_food
---
code: |
favorite_food_interim = ''
---
event: criticize_food
code: |
if action_argument('favorite_food') and action_argument('favorite_food') != favorite_food_interim:
favorite_food_interim = action_argument('favorite_food')
background_response("What? You like " + favorite_food_interim.upper() + "?", 'flash')
background_response()
---
mandatory: True
question: |
Your favorite food is
${ favorite_food }
and your favorite drink is
${ favorite_drink }.