I have a form element with
#access = FALSE. I'm trying to set the value of this element during form validation using
form_set_value(). This works when
#access = TRUE, but not when
#access = FALSE (although even then the change is showing up in $form_state['values']. I suspect later on in form processing the default form value is being used instead of the altered value in $form_state['values'].
How can I set this element's value during validation such that the correct value will be passed to the form submit handler(s)?