Permalink
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (85 sloc) 1.71 KB
metadata:
title: Redact text
short title: Redact
documentation: "https://docassemble.org/docs/functions.html#redact"
example start: 3
example end: 4
---
modules:
- docassemble.base.util
---
objects:
- user: Individual
---
template: petition_text
content: |
Dear Judge,
My name is ${ user }.
I have a claim against
the defendant. A big one.
My SSN is ${ redact(user.ssn) }.
My phone number is
${ user.phone_number }.
My home address is:
${ redact(user.address) }
I demand ${ currency(money_claimed) }.
Thank you.
Sincerely,
${ user }
---
mandatory: True
question: |
Here is your document.
subquestion: |
You need to print both copies
and file them in court.
The unredacted version goes
to the judge, and the redacted
version will go in the public
record.
attachments:
- name: Unredacted petition
filename: petition_unredacted
redact: False
valid formats:
- pdf
- rtf
- docx
content: |
${ petition_text }
- name: Redacted petition
filename: petition_redacted
valid formats:
- pdf
- rtf
- docx
content: |
${ petition_text }
---
question: |
Tell me about yourself.
fields:
- First name: user.name.first
- Last name: user.name.last
- Social Security number: user.ssn
default: 000-22-2299
- Phone number: user.phone_number
default: 202-555-6266
---
question: |
Where do you live?
fields:
- Address: user.address.address
address autocomplete: True
- City: user.address.city
- State: user.address.state
code: |
states_list()
- Zip: user.address.zip
required: False
---
question: |
How much do you want to sue for?
fields:
- Amount: money_claimed
datatype: currency