I have a cck select list where the options are populated by my custom code. There is no issue for populating the list but after that the selected options are not able to save. Is there any way to fix this. Here is my code snippets:
function pelikan_common_form_alter(&$form, $form_state, $form_id) { if ($form_id =='monitoring_node_form'){ $nid = arg(3); $node = node_load($nid); $index=0; foreach ($node->field_test_monitoring['und'] as $key) { $show = node_load($key['nid']); $form['field_indicator']['und']['#options'][$index++]= $show->title; } }