Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (58 sloc) 1.17 KB
metadata:
title: Edit list
short title: Edit list
documentation: "https://docassemble.org/docs/groups.html#editing"
example start: 7
example end: 8
---
objects:
- person: DAList.using(object_type=Individual,
there_are_any=True,
complete_attribute='complete')
---
code: |
person[i].name.first
person[i].favorite_fruit
person[i].complete = True
---
question: |
Who is the ${ ordinal(i) } person?
fields:
- First Name: person[i].name.first
- Last Name: person[i].name.last
---
question: |
What is ${ person[i].possessive('favorite fruit') }?
fields:
- Fruit: person[i].favorite_fruit
---
question: |
Are there any more people
you would like to mention?
yesno: person.there_is_another
---
question: |
Who is your favorite person?
fields:
- Favorite: favorite
code: person
---
mandatory: True
question: |
All done
subquestion: |
The people are ${ person }.
Your favorite is ${ favorite }.
${ person.table }
${ person.add_action() }
---
table: person.table
rows: person
columns:
- Name: |
row_item.name.full()
- Fruit: |
row_item.favorite_fruit
edit:
- name.first
- favorite_fruit
You can’t perform that action at this time.