Can you Inject an Answers Experience with a Filter already ticked?
So something like: https://resources-answers_yext.yextpages.net/?FilterBox.filter0=%5B%5D&FilterBox.filter1=%5B%5D&FilterBox.filter2=%5B%22Publication%22%5D&referrerPageUrl=
I know I can just include an iframe but the injected experience’s iframe is responsive to the content within it so I don’t have to deal with multiple scroll bars on my page.
Hi @Paige_Ponzeka,
You are not currently able to auto-select facets on load. However, you can auto-select Static filters.
All you need to do is add selected: true
within the FilterOptions component. See Github documentation for more info: GitHub - yext/answers-search-ui: Answers Javascript API Library for building Search experiences.
Best,
Sam
This would have to be a global change on the answers experience right?
I’m trying to inject 1 answers experience with different filters ticked on different pages.
i.e.
-
on /resources I would embed just https://resources-answers_yext.yextpages.net/
and
-
on /resources/publications I would embed https://resources-answers_yext.yextpages.net/?FilterBox.filter0=%5B%5D&FilterBox.filter1=%5B%5D&FilterBox.filter2=%5B%22Publication%22%5D&referrerPageUrl=
-
On /resources/webinars I would embed https://resources-answers_yext.yextpages.net/?FilterBox.filter0=%5B%5D&FilterBox.filter1=%5B%5D&FilterBox.filter2=%5B%22Webinar%22%5D&referrerPageUrl=
Is there anyway to inject these experiences without having to create a new Answers Experiences for each of these pages?