mplp / docassemble-MLHPPOAndProposedOrder

MIT License
0 stars 0 forks source link

County-specific logic: Oakland and Wayne relationship descriptions #123

Closed normon66 closed 1 month ago

normon66 commented 2 months ago

For Oakland and Wayne counties, we sometimes include an open text field to collect the user's description of their relationship with the respondent (in addition to the normal checkboxes). This is then included on the Statement of Facts.

In the below screenshot, a Type of PPO MC of 1 is domestic, 2 is non-domestic stalking, and 3 is non-domestic sexual assault. image

Slightly different text is included in these pages, depending on whether it's domestic or non-domestic.

Page "2.1 Relationship Details Domestic": image

Page "2.2 Relationship Details Nondomestic": image

Sample form output on domestic PPO: image

RamiLorca commented 1 month ago

@normon66 In the A2J version, this screen didn't come up for me when I selected a domestic PPO and either Oakland or Wayne counties. Has the logic been changed? Or is there maybe a specific combination of checkboxes that triggers this question?

normon66 commented 1 month ago

@RamiLorca - I'm glad you caught this! There is indeed one additional layer of conditional logic here.

If a domestic PPO for Oakland or Wayne and the relationship is one of the options checked in the image below, the open text relationship page is skipped. image image

Instead, the HotDocs computation automatically inserts one of these short phrases: image

ekressmiller commented 2 days ago

@normon66 Looks like our logic is currently incomplete for adding "The parties currently reside together" or "The parties do not currently reside together" to the statement of facts. Am I correct that:

And is there any other logic I should be aware of?

Thanks, apologies if you have already shared this somewhere!