You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/style_guide/question_library/addresses.md
+218Lines changed: 218 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -358,6 +358,224 @@ know in advance.
358
358
Keep in mind that this may not be a very good user experience for most users.
359
359
Your default address question should be more standardized.
360
360
361
+
## Impounded addresses
362
+
363
+
Impounded addresses are addresses that should be hidden or redacted on certain documents for safety or privacy reasons. This feature is commonly needed in domestic violence cases, restraining orders, or other sensitive legal situations where revealing an address could put someone at risk.
364
+
365
+
The Assembly Line framework supports both impounded addresses and impounded phone numbers.
366
+
367
+
### When to use impounded addresses
368
+
369
+
Use the impounded address feature when:
370
+
371
+
- The user's address needs to be kept confidential for safety reasons
372
+
- Court rules allow or require address impounding in your jurisdiction
373
+
- The user may need some documents to show their full address (like for service), while other documents should redact it
374
+
- You need to collect the address for court records but hide it from opposing parties
375
+
376
+
### Basic impounded address collection
377
+
378
+
Add the `ask_if_impounded=True` parameter to the `address_fields()` method to include a checkbox asking if the address should be impounded:
379
+
380
+
<Tabs>
381
+
<TabItem value="Assembly Line Example" label="Assembly Line Example" default>
- My phone number is impounded: users[0].phone_impounded
466
+
datatype: yesno
467
+
help: |
468
+
Check this if your phone number should be kept confidential.
469
+
- Email address: users[0].email
470
+
datatype: email
471
+
required: False
472
+
```
473
+
474
+
</TabItem>
475
+
</Tabs>
476
+
477
+
### Displaying impounded information
478
+
479
+
By default, if an address or phone number is marked as impounded, it will display as **IMPOUNDED** instead of the actual information when used in templates or document assembly.
480
+
481
+
To override this and show the actual impounded information (for example, on documents meant for court filing), use the `show_impounded=True` parameter:
482
+
483
+
```yaml
484
+
# This will show "**IMPOUNDED**" if the address is impounded
485
+
${ users[0].address_block() }
486
+
487
+
# This will show the actual address even if impounded
488
+
${ users[0].address_block(show_impounded=True) }
489
+
490
+
# Same applies to phone numbers
491
+
${ users[0].phone_numbers() } # Shows "**IMPOUNDED**" if impounded
492
+
${ users[0].phone_numbers(show_impounded=True) } # Shows actual number
493
+
```
494
+
495
+
### Methods that support impounded addresses
496
+
497
+
All address display methods support the `show_impounded` parameter:
498
+
499
+
- `address.block(show_impounded=True)`
500
+
- `address.line_one(show_impounded=True)`
501
+
- `address.line_two(show_impounded=True)`
502
+
- `address.on_one_line(show_impounded=True)`
503
+
- `person.address_block(show_impounded=True)`
504
+
- `person.phone_numbers(show_impounded=True)`
505
+
506
+
### Custom impounded text labels
507
+
508
+
You can customize the text that appears when information is impounded by defining these templates in your interview:
509
+
510
+
```yaml
511
+
# Custom label for the impounded checkbox
512
+
template: ALAddress.impounded_label
513
+
content: |
514
+
Keep this address confidential
515
+
516
+
# Custom text shown instead of impounded addresses
517
+
template: ALAddress.impounded_output_label
518
+
content: |
519
+
[CONFIDENTIAL ADDRESS]
520
+
521
+
# Custom text shown instead of impounded phone numbers
When using `normalized_address()`, the geocoded result will not be redacted even if the original address is impounded. Use the original address object for impounded content.
0 commit comments