Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
metadata:
title: Check in, run code, and return template
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
under: |
[TARGET feedback]
check in: question_food
---
event: question_food
code: |
if action_argument('favorite_food'):
the_food = action_argument('favorite_food').upper()
else:
the_food = 'nothing'
food_message
---
template: food_message
content: |
_What?_ You like ${ the_food }?
target: feedback
---
mandatory: True
question: |
Your favorite food is ${ favorite_food }.