Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (36 sloc)
690 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata: | |
title: Add separators | |
short: Separators | |
example start: 5 | |
example end: 5 | |
documentation: "https://docassemble.org/docs/functions.html#add_separators" | |
--- | |
objects: | |
- fruit: DAList | |
--- | |
question: | | |
Are there any fruit that you like? | |
yesno: fruit.there_are_any | |
--- | |
question: | | |
What is the ${ ordinal(i) } fruit | |
that you like? | |
fields: | |
- Fruit: fruit[i] | |
--- | |
question: | | |
Are there any other fruit that you like? | |
yesno: fruit.there_is_another | |
--- | |
mandatory: True | |
question: | | |
Fruits | |
subquestion: | | |
You like: | |
% for item in add_separators(fruit): | |
* ${ item } | |
% endfor | |
attachment: | |
docx template file: add-separators.docx | |
buttons: | |
- Try another: restart |