Gravatar for dipsindol@gmail.com

Question by DEEPTHI KATTA, Jan 25, 2017 8:07 PM

Add a disjunction expression based on tab selected

Hi There!

Currently, I am using the 'buildingQuery' event to add few disjunction expressions that are needed. I want to add additional condition to specify add this disjunction only if the selected tab is such and such. Is it possible to do this, I do not find anything that could help me in args query builder that has this data. Is there any other object I can look for selected tab?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Jan 26, 2017 7:26 AM

You can use the state function with 't' to get the selected tab.

var selectedTab = Coveo.state(document.getElementById('IdOfYourCoveoSearchInterfaceElement'), 't');
Ask a question