Closed jshster closed 5 years ago
Never mind... not sure how I missed the example with the multiple values re-loaded. Either I had the parameters setup incorrectly or there is an issue with a PHP file that renders a JSON file. Either way I switched my output to a json file and moved the sample code over and voila it worked. Don't have time to investigate further at this stage.
Hi there, I'm using 2.2.4 (latest to the best of my knowledge) and have got an issue with reloading values when multiple is set.
Here's my HTML field:
Here's my JS to initiate the Flexdatalist: $("#instructors").flexdatalist({ data: 'active-instructors.php', searchContain: true, searchIn:'name', minLength:'2', multiple:"multiple", selectionRequired: true, valueProperty: "id", textProperty: "name", allowDuplicateValues: false });
active-instructors.php is a json encoded array of instructors ids and names.
I can see in the source the Id's are there on the field (as shown above) but nothing is shown once the Flexdatalist is instantiated.
I suspect I'm doing something very very minor incorrectly but despite reviewing examples plus other tickets I can't work out what I'm doing wrong.
Any help would be appreciated. Thanks