Forums

Urgent Code not Working in Dropdown after CF upgrade

cymak 31 Mar, 2016
http://www.feisonline.com/index.php?option=com_chronoforms5&chronoform=PreRegister

Dance School dropdown showing [object Object]

Error stems from

<?php
$options = array();
$options[] = array('key' => '', 'text' => 'Select');
$options[] = array('key' => 'ZZZ', 'text' => 'Not Listed, Add New School to List');
$options[] = array('key' => '', 'text' => '--------------------------------');
foreach ( $form->data['GetSchData'] as $d ) {
  $options[] = array('key' => $d['ID'], 'text' => $d['School_Name']);
 };
$options[] = array('key' => '', 'text' => '--------------------------------');
$options[] = array('key' => 'ZZZ', 'text' => 'Not Listed, Add New School to List');
echo json_encode($options);
?>


was working in 5.0.10, any ideas? Thanks
GreyHead 01 Apr, 2016
Hi cymak,

We got the sorting working by hacking the CF code code - see this post. You will need to make the same changes in the updated version of CF.

Bob
cymak 01 Apr, 2016
Of course, sorry my fault forgot about that, will try will changes, thanks!
This topic is locked and no more replies can be posted.