Clarify that the #default_value is passed in the POST for #access = FALSE

Created on 24 February 2014, about 11 years ago
Updated 26 March 2025, 18 days ago

In the current Form API reference, at least for Drupal 6, it says the following about #access:

"Whether the element is accessible or not; when FALSE, the element is not rendered and the user submitted value is not taken into consideration."

I learned today that the #default_value that is set programmatically is still taken into consideration for a field where #access is set to FALSE. Could a note to that effect be added to the documentation?

πŸ“Œ Task
Status

Closed: won't fix

Component

API documentation files

Created by

πŸ‡ΊπŸ‡ΈUnited States EvanDonovan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024