I have set up a content type including a text field with several "Allowed Values". These values display fine when viewing complete nodes of this content type, however when I attempt to create a view and include this field with "Allowed Values" the values are not displayed in the view results.

The field label is displayed in the view output. I have worked with all the various options for this field in the view ( rewriting output, etc.) and in the "Display Fields" section of the content type and have not managed to get any results.

I haven't found a post specifically on this topic but what I am finding seems to suggest that I may need to write a preprocess function to query the database and then set the value up in a new variable - is there an easier way to accomplish this?

The Views CustomField module does not appear to offer an obvious solution.

Many thanks for any light you can shed on this.

Comments

OxH2’s picture

I had a filter configured for the view with a "is not one of" condition. I adjusted the filter condition to "is one of" and the "Allowed Values" data showed up in the view results.

Is it known that this filter condition bonks views output of "allowed values" text fields?

mry4n’s picture

This should really go in the Views Issue Queue if you want a response. I'll be going there next to see if anyone else has run into this problem.