I have enable the auto-completion.standard property and auto-completion property in the collection configuration.
the suggestions works in the preview of the simple.ftl file but not in the actual site.
can someone please suggest where i am making the error?
<script>
jQuery(document).ready(function() {
jQuery('input.query-dcc').autocompletion({
datasets: {
<#-- make sure auto-completion.standard is enabled in the config file-->
<#-- <#if question.collection.configuration.valueAsBoolean('auto-completion.standard.enabled')> -->
organic: {
collection: '${question.collection.id}',
profile : '${question.profile}',
program: '<@s.cfg>auto-completion.program</@s.cfg>',
format: '<@s.cfg>auto-completion.format</@s.cfg>',
alpha: '<@s.cfg>auto-completion.alpha</@s.cfg>',
show: '<@s.cfg>auto-completion.show</@s.cfg>',
sort: '<@s.cfg>auto-completion.sort</@s.cfg>',
group: true
},
},
typeahead: {hint: true},
length: 3
});
});
</script>
This is the function which I use to display suggestions (default)