[turba] How to define dropdown lists and checkboxes in attributes.php?

Jan Schneider jan at horde.org
Tue Aug 22 06:18:56 PDT 2006


Zitat von Volker Then <vt at volkerthen.com>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Volker Then <vt at volkerthen.com>:
>>
>>> Hi,
>>>
>>> I need some drop down lists (select fields) and checkboxes  
>>> (yes/no) in some of my addressbooks. How would I define those in  
>>> config/attributes.php? I'll searched the wiki but did not find  
>>> anything.
>>
>> An enum (select) field looks like this:
>>
>> $attributes['currency'] = array(
>>    'label' => 'Währung',
>>    'type' => 'enum',
>>    'params' => array(array('EUR' => 'EUR', 'USD' => 'USD')),
>>    'required' => false
>> );
>>
>> A checkbox should be straight forward and doesn't even require 'params'.
>>
>> Jan.
>
> Thanks, Jan!
>
> That helped.
>
> Something else: Would it be possible some day to make certain fields  
> (like critical client data) only visible to certain usergroups?

That's not planned at the moment and noone asked for it so far either.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the turba mailing list