I am trying to generate the allowed values for a select CCK text field using PHP code and I can´t get it to work. It seems the PHP code is being completely ignored; I tried a very simple code, and code copied from examples here at the forum and it doesn´t work. The select box always comes with whatever is configured in the allowed values field, even if it is empty. Any ideas?

Comments

rszrama’s picture

Maybe you can post up the PHP you're trying and I can take a quick look at it in a bit.

----------------------
Drupal by Wombats | Current Drupal project: http://www.ubercart.org

apcal’s picture

I wrote a very simple example, but when I tested it before posting it worked! Certainly I made a mistake before. Tanks a lot for taking your time to help, after all your post made me try again. Thanks!