Xforms date repeat fields redirects to encounter date

Hello @dkayiwa,

I’ve created a group in Xforms that helps us keep control of dispensed medications,when this field date is entered, the cursor jumps to the encounter date field of the form, this repeats itself for each item added to the repeat section of this group which is really annoying.

What could cause this behavior?


While in the form designer, select “Save As” from the “File” menu. Then paste the contents of the saved file into pastebin.com and share the pastebin url here.

Hello Daniel,

This is the paste bin link: https://pastebin.com/s02nVb5f.

The group is called Chronic Medications Dispensed, and the field is the date dispensed.

Using this page https://wiki.openmrs.org/display/docs/XForms+Newbies+FAQs, try do what is under the heading: How to change the Time, DateTime or Date picker widget from the default to that used by OpenMRS

Thank you Daniel, that works perfectly.