Hi,
Can a "Save custom fields" event update a user Field of type "list" with option "Multiple : Yes" ?
When saving from a json array ...
Joomla's user account forms can get these values back and save them in the proper Joomla way (several rows).
But it does not work for other components/scripts. They do not get the distinct values (including FieldsHelper::getFields).
When separately saving the values ("Loop Event" using "array_of_values" as data provider and a"Save custom fields" separately saving each value), only the last value is saved. The other ones get erased.
Can the "Save custom fields" event be useful here, or must we save the custom field values with custom PHP code instead ?
Can a "Save custom fields" event update a user Field of type "list" with option "Multiple : Yes" ?
When saving from a json array ...
field_name:{var/jsonen:array_of_values}... all the values are saved into one single database row. e.g. : ["value1","value2"].
Joomla's user account forms can get these values back and save them in the proper Joomla way (several rows).
But it does not work for other components/scripts. They do not get the distinct values (including FieldsHelper::getFields).
When separately saving the values ("Loop Event" using "array_of_values" as data provider and a"Save custom fields" separately saving each value), only the last value is saved. The other ones get erased.
Can the "Save custom fields" event be useful here, or must we save the custom field values with custom PHP code instead ?