1
Hello,
I have the following problem with Sharepoint in the following input:
<input id="listNCM" class="ms-long ui-autocomplete-input" autocomplete="off">
This input searches products through numbers, the guy starts typing the number and the autocomplete shows the suggestions, if the guy clicks on the suggestion all right, Sharepoint saves. If the guy glues the full number of the product and does not click on the suggestion it does not save.
Any hint as to how the autocomplete can search alone for the code "pasted"?
How does Sharepoint know that a suggestion was clicked? Do you have an example of code?
– Sam
@sam works just like the google search suggestion, it would be like a . push, when you glue the full product number it only shows the product, if it was possible to pull this product to input.
– Raul Zendron
but where does the data come from? from a Sharepoint list?
– Ricardo Pontual
@Ricardopunctual yes, there is a list with all products.
– Raul Zendron
then you can make the
input
take a list, need to use the classesjavascript
service ofsharepoint
– Ricardo Pontual
You can click on the suggestion that matches the one pasted: https://jsfiddle.net/Lpd2oxmz/2/
– Sam