I also created a PreferencesGenericDate in order to parse date values.
It saves the data in the customer_preference DB like this: email;telephone;fax
You just have to add something like this:
see the
<Item Key="Multiple">yes</Item>
and the
Code: Select all
<Item Key="Module">Kernel::Output::HTML::PreferencesGenericMultiple</Item>
Code: Select all
<ConfigItem Name="CustomerPreferencesGroups###mode_recolte" Required="0" Valid="1">
<Description Translatable="1">Mode de récolte d'infos</Description>
<Group>Usager</Group>
<SubGroup>Info de base</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::PreferencesGenericMultiple</Item>
<Item Key="Column">Other Settings</Item>
<Item Key="Label" Translatable="1">Mode de récolte d'infos</Item>
<Item Key="Key" Translatable="1">Mode de récolte d'infos</Item>
<Item Key="DataSelected">rdv</Item>
<Item Key="PrefKey">mode_recolte</Item>
<Item Key="Prio">5002</Item>
<Item Key="Active">1</Item>
<Item Key="Data">
<Hash>
<Item Key="phone">Telephone</Item>
<Item Key="fax">Fax</Item>
</Hash>
</Item>
<Item Key="Multiple">yes</Item>
</Hash>
</Setting>
</ConfigItem>