Gravatar for

Question by adanane, Apr 4, 2019 1:19 PM

Issue with selecting Facets after auto-select Facets script is on (Salesforce)


I'm using this script on a Salesforce community, which is working fine on load:

$('#search').on('afterInitialization', function (e) {

$('.CoveoFacet[data-title="Source"]').coveo().selectValue('Knowledge Base');

$('.CoveoFacet[data-title="Source"]').coveo().selectValue('Script Library');


My only issue is that whenever I type in the search bar to get results, I can uncheck the auto-selected facets but I can't select others.

What is missing? Thank you.

Gravatar for

Comment by Etienne, Apr 11, 2019 2:10 PM

Please look in the Console of your browser such as the Chrome developer tools.

There is probably a red error showing up there when you try selecting a facet and it doesn't work.

The code above should not have any effect on facet selection past the original load.

0 Reply
Ask a question