Another solution that would function similar to a filter would be to create unique fields for each of the 'Codes' corresponding options. Then create a domain for each of those fields (containing the options), creating drop-down boxes for each of those fields, and then using Arcade's hide-show logic to only show the drop-down box for the selected Code. So if code 'Roofing' is chosen, a drop down for Roofing Options is shown. All of the options could then be brought into one field using Python, Field Calculator, or having Arcade doing it dynamically.