Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (47 sloc) 948 Bytes
metadata:
title: Table block
short title: Table
documentation: "https://docassemble.org/docs/template.html#table"
example start: 3
example end: 3
---
objects:
- fruit: DAList
---
mandatory: true
code: |
fruit.object_type = Thing
fruit.there_are_any = True
---
table: fruit_table
rows: fruit
columns:
- Fruit Name: |
noun_plural(row_item.name)
- Number of Seeds: |
row_item.seeds * 2
---
mandatory: True
question: |
Information about fruit
subquestion: |
The fruits you mentioned were
${ fruit }.
Here is a fruity summary.
${ fruit_table }
---
question: |
What fruit should be added to the list?
subquestion: |
When entering fruit names, use the
singular rather than the plural.
fields:
- Fruit: fruit[i].name.text
- Number of seeds: fruit[i].seeds
datatype: integer
min: 0
---
question: |
So far, the fruits include ${ fruit }.
Are there any others?
yesno: fruit.there_is_another
You can’t perform that action at this time.