diff --git a/docassemble/AppearanceEfile/data/questions/appearance.yml b/docassemble/AppearanceEfile/data/questions/appearance.yml index 26347c9..64f10c1 100644 --- a/docassemble/AppearanceEfile/data/questions/appearance.yml +++ b/docassemble/AppearanceEfile/data/questions/appearance.yml @@ -227,12 +227,33 @@ code: | def will_kickout(case): if case.category.upper() == "CONFIDENTIAL": return True - # Case categories determine a lot of things, I'm not comfortable with contining - # if it's not there. + # Case categories determine a lot of things, I'm not comfortable with continuing + # if it's not defined. if case.category not in case_category_map and case.case_type not in case_type_map: return True case_category_name = (case_category_map.get(case.category) or {}).get('name', '').lower() - if case_category_name in ['probate', 'guardianship', 'juvenile abuse', 'criminal misdemeanor', 'quasi-criminal', 'criminal felony']: + # See https://efile-test.suffolklitlab.org/jurisdictions/illinois/codes/categories + if case_category_name in [ + 'probate', + 'guardianship', + 'mental health', + 'adoption', + 'juvenile abuse', + 'juvenile delinquent', + 'juvenile', + 'criminal felony', + 'criminal misdemeanor', + 'driving under the influence', + 'domestic violence', + 'quasi-criminal', + 'major traffic', + 'traffic', + 'order of protection', + 'contempt of court', + 'ordinance violation', + 'conservation', + 'miscellaneous criminal', + ]: return True # case types change more, so okay with not being there case_type_name = (case_type_map.get(case.case_type) or {}).get('name', '').lower() @@ -255,6 +276,9 @@ subquestion: | * Probate, or a case involving a will or an estate * Juvenile abuse and neglect * Criminal (misdemeanor or felony) + * Protective orders including Orders of Protection (OP), Stalking No Contact Orders (SNCO), and Civil No Contact Orders (CNCO) + * Adoption + * Mental Health Contact your local circuit clerk, or you can text or call [**IllinoisCourtHelp**](https://ilcourthelp.gov) at (833) 411-1121 for assistance. --- @@ -270,6 +294,10 @@ subquestion: | * Probate, or a case involving a will or an estate * Juvenile abuse and neglect * Criminal (misdemeanor or felony) + * Protective orders including Orders of Protection (OP), Stalking No Contact Orders (SNCO), and Civil No Contact Orders (CNCO) + * Adoption + * Mental Health + Contact your local circuit clerk, or you can text or call [**IllinoisCourtHelp**](https://ilcourthelp.gov) at (833) 411-1121 for assistance. --- @@ -283,6 +311,9 @@ subquestion: | * Probate, or a case involving a will or an estate * Juvenile abuse and neglect * Criminal (misdemeanor or felony) + * Protective orders including Orders of Protection (OP), Stalking No Contact Orders (SNCO), and Civil No Contact Orders (CNCO) + * Adoption + * Mental Health fields: - no label: case_is_invalid_type @@ -1903,3 +1934,16 @@ content: | --- + +### Customized from login_qs.yml in docassemble.EFSPIntegration +--- +id: check efile possibility +sets: + - can_check_efile +code: | + if efile_setup and trial_court.address.county not in ["Cook", "DuPage"]: + # Ask the user if they want to efile + can_check_efile = user_wants_efile + else: + show_no_efile + can_check_efile = False \ No newline at end of file