Is it possible to hide fields on the exposed block (with using CSS).
I would like a hidden field on the content type - which is used to gather results about state (IP and Country) when the form is submitted.
I'm using Rules to set values on the node after creation.

Is this possible?

Comments

hixster’s picture

Sorry, first line should have read.

"is it possible to hide fields on the exposed block (Without using CSS)."

rv0’s picture

using hook_form_alter

example:

function YOURMODULE_form_alter(&$form, &$form_state, $form_id) {

  if ($form_id == 'YOUR_FORM') {
    // hide email field
    $form['field_email']['#type'] = 'hidden';
  }

}
hixster’s picture

Thanks rv0

mikey_p’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing out old 6.x issues.