Hey Quin -
No, you need to know the correct string (like "The Americas") to filter with, and there is no method to list potential values for you to work with.
Curious though - for the sake of arguement, let's say there was - how would you actually use it? How would your code move through this list and pick the "right stuff" to filter with if you don't know what is going to be in that list in the first place?
Well I was wondering if it were possible to pull those values out to create a Html selector on the page while hiding the filter dropdown in the Tableau View. That way I could programmatically determine which filter options a specific user is able to select and not offer other specific filter options.
This is a non-answer. I'm wanting to do the exact same thing. How would I use it? A field has a list of available values. All I want to be able to do is retrieve that list of available values without having to know them beforehand, why? Because it would allow for me to expose those values outside of the iframe so they can match the style and responsiveness of a site, but don't have to be hardcoded into the CMS that the site is built in. They would be exposed in the form of a select list form element and allow the end user to filter on any of the available values.
You ask how would we know what the right stuff is? Because it exists as an available value.