⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

fieldTypeColumn does not work as expected



ywillener
  • profile picture
  • Member

Posted 14 March 2018 - 07:38 AM

Hello

 

I am using Grocerycrud Enterprise 2.5.1. If I set the fieldType ad follow:

$crud->fieldType('LAST_MODIFIED_BY', GroceryCrud::FIELD_TYPE_DROPDOWN, array('a' => 'a', 'b' => 'b'));

The table column filter is the expected dropdown. I would like the user to be able to add custom text when editing / adding records, thus I have set the fieldTypeColumn as follow:

$crud->fieldTypeColumn('LAST_MODIFIED_BY', GroceryCrud::FIELD_TYPE_DROPDOWN, array('a' => 'a', 'b' => 'b'));

Then no data are showing in the table and there is no dropdown on the column filter. 

 

Does the fieldTypeColumn function support dropdown?

 

Thanks

Yannick