This is a documentation page of how to configure and style Site Search 360 for a contact form. View the to check the configuration.
Important configurations are results.ignoreEnter: true
, results.fuzziness: 5
, suggestions.fuzziness: 5
and suggestions.triggersSearch: true
.
window.ss360Config = {
siteId: 'spoonacular.com', /* Replace with your site id */
searchBox: {
selector: '#contact-form' /* Replace with the css selector of your search box */
},
suggestions: {
triggersSearch: true,
fuzziness: 5
},
results: {
embedConfig: {
contentBlock: '.example__page-content-block' /* Replace with the css selector of the DOM element you want to use */
},
fuzziness: 5,
ignoreEnter: true,
caption: 'Maybe one of these answer your question:'
}
};