Support (offered by community volunteers) > Using Drupal Modules

Display multi-select/checkbox field in views2

(1/1)

mariagwyn:
Brief: multi-select/checkbox fields appear to display in views as a string, not as separate items.  Is there a way to fix this?

Details: I created a custom field 'academic interests', checkbox.  In views, I can call the field, but it displays like this: AgapeBioethicsBuddhist_Ethics.  What I want is this: "Agape, Bioethics, Buddhist Ethics".

Is this possible?  It appears that it is treating output as a string of text, not a list of items.
Thanks,
Maria

Update: on further investigation, this is a problem with other multiselect fields, such as "preferred_contact_method".  It just strings them all together, "123" rather than "1, 2, 3".

Donald Lobo:

i suspect you will need to write (or fix) the handler for multi-selects in the code at: drupal/modules/views/civicrm/* to properly format the text there

we are not too familiar with the code base and cannot help u a lot there. if you do find the relevant file and fix, please do post an issue along with a patch

thanx

lobo

junix123:

--- Quote from: mariagwyn on July 09, 2009, 06:39:31 pm ---Brief: multi-select/checkbox fields appear to display in views as a string, not as separate items.  Is there a way to fix this?

Details: I created a custom field 'academic interests', checkbox.  In views, I can call the field, but it displays like this: AgapeBioethicsBuddhist_Ethics.  What I want is this: "Agape, Bioethics, Buddhist Ethics".

Is this possible?  It appears that it is treating output as a string of text, not a list of items.
Thanks,
Maria

Update: on further investigation, this is a problem with other multiselect fields, such as "preferred_contact_method".  It just strings them all together, "123" rather than "1, 2, 3".

--- End quote ---

Hi, I have the same problem in Drupal 7 and Views 3, have solve this one?
I hope you can share if it happened you solve this one.

thanks

Navigation

[0] Message Index

Go to full version