Skip to main content
2 of 3
added taxonomy since the specific field in this case is a term reference field
Lester Peabody
  • 4.5k
  • 6
  • 46
  • 81

Submitting disabled fields on content entry forms?

I need to submit content entry forms that have default values set in disabled elements. However, if I remember correctly, HTTP specifies that fields that are disabled do not have their values sent to the web server (or are dropped by the web server, I can't remember).

Specifically, I have a tag field (term reference) that is a select list, and it defaults to a particular value that is updated twice a year and it cannot be changed by users submitting the form. I want this field to appear to the user, but at the same time I want it disabled so they can't change it.

How can I submit a disabled field in Drupal 7?

Lester Peabody
  • 4.5k
  • 6
  • 46
  • 81