I am pretty sure you can reference the custom state the same way you are doing the search. If not, you can input the data in a repeating group, do the filter in the repeating group, and reference the data from that repeating group