Forums

Edit a field with multiple value with comma

cyber81 17 Jul, 2015
Hello, In a form I have a dropdown that allow a multiple select and store the values on field with the ",".

On submit I have put the handle array first saving.

But if I use a chronoconnectivity connection to edit the record but the field dont' show the value chouse before!
How I must call the field of the edit form ?? I've tried connection[field][], connection[field[]].. but don't work

Can anyone help me??

:)
GreyHead 17 Jul, 2015
Hi cyber81,

In your form please add a Custom Code action after the DB Read action with code like this
<?php
$form->data['column_name'] = explode(',', $form->data['column_name']);
?>
replace column name with the name of the column/input using the multiple values.

This seems to be a feature that accidentally got dropped from the DB Read action in CFv5.

Bob
cyber81 17 Jul, 2015
Tnx for your reply! But in the main form (input data form) or in the edit form (that read data from connectivity) ?
GreyHead 17 Jul, 2015
Hi cyber81,

In the edit form as it looks as if that is where you are seeing the problem.

Bob
This topic is locked and no more replies can be posted.