hide a field in webform components I want to hide the field "form key" in all of the webform components.
I tried doing it with "*hook_form_alter*" and with "[#access] = false" but I can't succeed in this.
I also tried to use "*hook_webform_component_load*".

But in all of those, i can't understand exactly what I need to do to hide the form key field in all of the components in all of the webforms. I can't even hide one component's "form key" field. I don't understand which is the field that i need to modify.

p.s - im using form_builder too.

I'm doing something wrong.

any help will be appreciated.
thanks, alexandra.
The webform_civicrm module does this (actually it disables it rather than hiding it)

You can see the relevant code here (note this function runs in the context of hook_form_alter).

You could hide it by doing something similar but setting $form['form_key']['#type'] = 'hidden';