Question About Adding Search Bar

Hi team! My client asked the following in reference to adding the search bar to their pages:

“Can we use a form post to their [Yext] platform using the existing search box? They have a significant block of code that needs to be installed to generate their search box which will likely slow down the site and means we’ll need to restyle the search box to match. Typically something like this can be handled with just redirecting the form post to their platform instead of loading a bunch of code on to every page of the site that’s not going to be used by 99% of the visitors to the website”

Can someone guide me on the best response here? Thanks!

Hi Himaja,

Could you further clarify why the client is concerned about including the Answers Javascript in the header? This is what facilitates the type-ahead functionality and analytics.

There’s always the option to simply link a button to the search page, or redirect a search bar input to the search results page without including the Answers library, but they would lose core functionality and value-add of the Answers bar.

Best,
Amani

Hi Amani,

They are mostly concerned with page speed. We’ve already flagged that they may lose some functionality, but they are still pushing for the form post option.

Best,
Himaja

Hi Himaja - the supported integration options are listed on our integration site here: https://answers-integration.netlify.app/

Otherwise, they likely will be able to construct a search bar that redirects to the Yext managed search results page via a form post, but we don’t have instructions on how to do so.