Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link
Joren
  • 2.4k
  • 5
  • 29
  • 53

Set the allowed options of a selectlist CCK field?

I have some CCK select list fields which I do not define allowed values for.

I need to set the options available using information available to me when the form is being loaded.

I tried setting the values in the node-form.tpl file but I get:

"An illegal choice has been detected. Please contact the site administrator."

for each field I set the allowed values for in this way.

What's the proper way to do this?