Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
added taxonomy since the specific field in this case is a term reference field
Link
Lester Peabody
  • 4.5k
  • 6
  • 46
  • 81
Source Link
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?