Permalink
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (71 sloc) 1.48 KB
metadata:
title: Checkbox export value
short title: Checkbox value
documentation: "https://docassemble.org/docs/documents.html#pdf template file"
example start: 10
---
modules:
- docassemble.base.util
---
objects:
- user: Individual
---
question: |
Please fill in the following information.
fields:
- Your First Name: user.name.first
- Your Last Name: user.name.last
- Your Organization: user.organization
---
question: |
Do you like toast?
yesno: likes_toast
---
question: |
Do you like apples?
yesno: likes_apples
---
question: |
Do you like pears?
yesno: likes_pears
---
question: |
Do you like oranges?
yesno: likes_oranges
---
mandatory: true
code: |
introduction_shown
---
question: |
Assembling a document from a PDF
template
subquestion: |
This interview will fill fields in
a .pdf template. You can
[download the template] to see what
it looks like.
[download the template]: ${ url_of('sample-form-checkbox-export-value.pdf') }
field: introduction_shown
---
question: |
Here is your PDF form
attachment:
name: A filled-in form
filename: filled-form
pdf template file: sample-form-checkbox-export-value.pdf
checkbox export value: "yes"
fields:
- Your Name: |
${ user }
- Your Organization: |
${ user.organization }
- Apple Checkbox: |
${ likes_apples }
- Orange Checkbox: |
${ likes_oranges }
- Pear Checkbox: |
${ likes_pears }
- Toast Checkbox: |
${ likes_toast }
mandatory: True