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: Checking in
documentation: "https://docassemble.org/docs/background.html#check in"
example start: 1
example end: 4
---
mandatory: True
code: |
counter = 0
drafts = set()
---
question: |
What is your favorite food?
fields:
- Favorite food: favorite_food
check in: track_drafts
---
event: track_drafts
code: |
counter += 1
if action_argument('favorite_food'):
drafts.add(action_argument('favorite_food'))
---
mandatory: True
question: |
Your favorite food
subquestion: |
Your favorite food is ${ favorite_food }.
You checked in ${ counter } times.
Your draft choices were
${ comma_and_list(drafts) }.