would like to show $row->text in eval'd element list view

usdc-or

Member
I have several forms that use eval'd php code to create options for radio button and checkbox elements. I see in the list view these are showing the id rather than the value, no doubt because that is what was saved in the database.

from the standard example:

foreach ($rows as $row) {
$options[] = JHTML::_('select.option', $row->id, $row->text);
}
return $options;


Shows the $row->text in the form but in list view the $row->id is displayed. Any assistance is appreciated.

I feel like this used to work before 3.10 but I cannot be absolutely certain.
 
Should do.
If you have existing records with a value in DB which is not one of your option values it will show this value (because it doesn't find a label for it).
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top