Gravatar for jennifer.palawasta@blackbaud.com

Question by Jennifer Palawasta, Jul 20, 2016 2:13 PM

Facet search placeholder

We are implementing facet search and want to change the placeholder text away from 'Search in product'. I do not see where we can assign a class to the input element in the index file to define a new placeholder text. Any suggestions?

1 Reply
Gravatar for olamothe@coveo.com

Answer by olamothe, Jul 20, 2016 5:14 PM

You can override the localized string.

https://developers.coveo.com/display/JsSearchV1/Localization#Localization-AddingorOverridingStrings

In your case it would be :

String.toLocaleString({ "en": {
  "SearchIn": "Replace me by something else",
}});

Change the "en" key if you wish to do it for a different locale.

Gravatar for jennifer.palawasta@blackbaud.com

Comment by Jennifer Palawasta, Jul 21, 2016 8:29 AM

That worked! Thank you.

Ask a question