How to use '.change()' jQuery event with auto-complete fields in HTML Form Entry

OK thanks.

For some reason, the “.change()” event already works when user inputs an incorrect or an empty value. However, it doesn’t fire when a valid value is entered.

I’ve added the following line

textField.trigger("change");

to the configuration of the auto-complete widget: https://github.com/mekomsolutions/openmrs-module-htmlformentry/commit/2f498bf5697553ea2be5ec66297b3085252f3362

It now works fine.

Could it be subject to a pull request from us ?