Pre-selecting Advisor Questions
Learn how to use the function crobox.setFinderState to control the state of the advisor via our JavaScript API. You can pre-select answers for specific questions, and control question page navigation.
Overview
Implementation
Example Snippet
window.crobox = window.crobox || [];
crobox.push(function(crobox) {
// Set answers for the Finder (e.g., skip a question page for a pre-selected answer or show the user a pre-filled answer within the question page)
crobox.setFinderState('shoe-finder', {
'page-gender': '1', // Page is submitted (‘1’), otherwise omit the element
'gender': 'men', // Question ‘gender’ is answered with: 'men' (other option: 'women')
'category': 'trail' // Question ‘category’ is answered with: 'trail' (other options: 'road', 'hiking')
});
});
Last updated
Was this helpful?
