In KB 3.x, you can submit a question anytime, using the Contact form. What you'll notice when start typing your question into the form is real-time article suggestions, based on what you are typing.
These suggestions appear directly below the form:
This is all done in real-time, requiring no page reloads, or having to navigate away from the question form.
You can apply this concept to any HTML form.
Prepare your HTML form
In your knowledgebuilder/js folder, you'll notice a JavaScript file called livesearch.js. If you're adding this feature to another page within the KnowledgeBuilder site, include that file on the page where your HTML form resides.
Then, somewhere below this input field, you'll need two additional elements. One must contain id="livesearch_status", and the other id="livesearch_results". Also include class="ac_hidden" to both elements.
You don't have to use <div> elements in the example above, but for browser consistency, it's best to stick with <div>.
That's it! Your HTML form should now pull Article results dynamically, as you type
Things to be aware of
The live search feature checks for matches for every five characters typed, three seconds after you stop typing. This is to avoid hitting the server for every single character, which would dramatically slow down the page and affect the user experience.
The script will work for HTML editors (like TinyMCE), and standard HTML textareas.
The live search scripts currently only look at the Articles. If you wanted live search for Comments, for example, these scripts wouldn't work.