Placeholder text in search bar

image

I have added the placeholder text but i’m not getting that in search bar.

Hi @Sony_Pillutla. It sounds like you are trying to add the placeholder text to your intent page search bar, right? You can actually do that directly from Page Builder without editing any code. It’s built into the “Navigation Bar with Answers Search Bar” module:

If you follow the above steps, you’ll see a field to input your placeholder text from the UI.

Hope this helps,
Sam

1 Like

Hi Sam, I have the same issue. I added HTML module to get the search bar, from that code am getting the promptHeader but not the SearchText(placeholder). How to get that in HTML module?

Hi @CHALLOJU_SHIVANI and @Sony_Pillutla

If you are using the HTML module approach, you can add:

placeholderText: 'Search...', within the initAnswers function, like so:

Let me know of any follow-up questions!

Sam