In the select form, in the options section, value always starts at zero. I want to replace the value part with the "id" values I got from the database, but I couldn't.
I made a change in the select function in the qa-theme-base.php file as follows:
if(isset($field['index'])){
$this->output('<option value="' . $field['index'][$key] . '"' . ($selected ? ' selected' : '') . '>' . $value . '</option>');
}else{
$this->output('<option value="' . $key . '"' . ($selected ? ' selected' : '') . '>' . $value . '</option>');
}
Please let me know if there is a better way.