We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Fieldtype Woes

Development and Programming

jwindhorst's avatar
jwindhorst
99 posts
14 years ago
jwindhorst's avatar jwindhorst

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.

       
jwindhorst's avatar
jwindhorst
99 posts
14 years ago
jwindhorst's avatar jwindhorst

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.