If a filter has a custom filter identifier and you add a placeholder text for that filter in the exposed form options the placeholder is not shown in the form field for that filter.

This is caused by the fact that the #placeholder key is added to the original filter identifier instead of the custom filter identifier.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ricovandevin created an issue. See original summary.

ricovandevin’s picture

Patch attached.

godotislate’s picture

I think all that's needed is to change the array index from $label to $field_id.

Nitebreed’s picture

Status: Needs review » Closed (duplicate)

A solution for this (same as patch #3) is already commited in #2895536: Allow placeholder option for SearchAPI filters