I need to make a field that dynamically offers possible options as you type. I found a flexdatalist , and everything would be fine, but I can not previously insert data into the field - the script deletes everything.
Here is the part of the documentation that describes what I need.
I do everything the same way as in the documentation, but it simply displays an empty field.
Part of the code:
<input value='{$content[0]['disease_id']}' type="text" class="form-control flexdatalist" id="disease_id" name="disease_id" data-url='/json?get=diseases' data-search-in='name' data-text-property='name' data-visible-properties='["name"]' data-selection-required='true' data-value-property='id' data-min-length='0' required>
Who worked with flexdatalist, tell me, what am I doing wrong, or what is an alternative to this (there must be support for choosing several values)?
How to be?
/json?get=diseasesand is it valid? Add sample data to the question - Darth