Hi,
I defined a new sugar field type for having a multiple-checkbox field. I essentially used this code here: https://github.com/bickart/SugarCRM-CheckboxMultiEnum/tree/master/custom/include/SugarFields/Fields/CheckboxMultienum and placed it into custom/include/SugarFields/Fields/MyFieldType/…
This works so far nicely. Now, in the ListView the values of the fields are shown as
^A^,^B^,^C^, ...
With A, B, C being my ‘values’ essentially. SuiteCrm now outputs the database values 1:1 into the ListView.
I figured out that I have to create a ListView.tpl for my newly created field type which receives the database values and outputs them how I like it. I don’t understand how to access the actual string values when this .tpl is executed.
In which variable are the database values stored? Once I get my hands on the actual values figuring out how to output the values correctly is doable but I am stuck with not knowing where to get the database info from? I tried this:
{if !empty($parentFieldArray.$col)}
{multienum_to_array string=$parentFieldArray.$col assign="values"}
{foreach from=$vals item=item name=multiEnum}
{$vardef.options_list.$item}{if !$smarty.foreach.multiEnum.last},
{/if}
{/foreach}
{/if}
but parentFieldArray.col doesn’t seem to hold the data 
All I want to do is essentially removing the ‘^’ from the database string for presenting in the listview but this is causing me a really hard time right now.
P.S.: I don’t want to use a logic hook, which I would have to define for every ListView anew. I would like to have this work generically for this field type.