How to limit the list of nodes in a view based on a text field value? Is it possible to show only Views content that passes a text in a given field?

For example, I have 3 content types and each content type has an identifier field (text field) which is hidden to the public.

So on my main content type, which is an information page, I list information about a football team. And then in the second content type I create results and a review of a match. And I display them as a view on the football team page (content type 1).

Content type 1 has a unique identifier, for example a text field saying "barcelona001". And this is the same on the "match results" content type field. How do I let views filter that, so that it only shows the right information?

If I can do this with a text field that would be great since I need to use a lot of taxonomy fields already to make it all work.

Any suggestions?
Create a new view that displays content of all types.
Add your text field to 'Filter Criteria'. It looks something like this...

Content: My Text Field Name (field_my_text_field_name)
Select 'is equal to' and enter 'barcelona001' to the 'Value' field.
Press Apply (twice).
If you have the value already on some contents text field it should now display a list of matching content in the preview.


You would probably also benefit from contextual filters. Remember first to remove the field from 'Filter Criteria' if you added it earlier.


Choose 'Advanced' from the Views settings page. It should now show you 'Contextual Filters' setting.
Add your field.
Click Apply.
You can now write 'barcelona001' in the 'Preview with contextual filters' field.
It should display the result in preview.
See the 'Path' value in the views settings. You can go to that path and put whatever value you have used in the textfield after the path like this .com/my-page/


I hope this helps!