I’m trying to create a new fieldtype that would allow me to have a multiselect box that was pre-populated by any field in any table. I started out by simply copying the original multiselect code and then went about modifying it to fit my needs. I though I had it most working, but it appears that it’s not storing the values in the database.
I’m not even sure where the saving part happens, or how to get the right values into the settings.
Please help if you can.
As an addendum: I found the controllers/cp/admin_content.php file which I believe is where the form submits to when creating a custom fieldtype. I had added a 3rd radio button in the custom field options called select_field_pre_populate just like the original 2 for a multiselect, and gave it a value of ‘t’ for table. When I dump out $_POST in the admin_content.php file, and set the radio to ‘t’, the POST value stays on ‘n’.
I know I must be missing something I’m just not sure what that might be. any assistance is greatly appreciated.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.