How to use a field other than node id or term id as contextual filter? I have a content type "Person" which has a field called "state". On the node page of any "person", I want to display other nodes of "Person" which has the same value for the "state" field.
For e.g. If a we are on a person node who is from New York, the view block placed on this node should display other persons from New York.

I know how this could be done if it were node id, or term id : using contextual filters and getting content id from URL, etc. However, I'm not sure how do I get this from other text field like "state".

Any pointers would be appreciated.
I think you need use the field type "list" or the field type "Taxonomy term".