Hi Tariq, I tested this out on demo.openmrs.org, and it works on the actual form entry page that you'd access from the patient dashboard, but you don't see it working in the preview.
I.e. I created it here: http://demo.openmrs.org/openmrs/module/htmlformentry/htmlForm.form?id=1 and to see it in action go here: http://demo.openmrs.org/openmrs/module/htmlformentry/htmlFormEntry.form?personId=892&patientId=892&returnUrl=&formId=19 Can you check whether this is also the case for you? (I.e. it actually works when you fill out the form, just not in the preview window?) -Darius On Thu, Aug 4, 2011 at 10:22 PM, Muhammad Tariq Khan <[email protected] > wrote: > Thank you Mike, > > $j(document).ready(function() { > window.alert('Hello, world.'); > > The above code is working fine but the change event is not working. > The code written below is the issue. > > getField("chkbox.value").change(function() { > window.alert('Weight is now'); > }); > > <obs id="chkbox" conceptId="159956" labelText="" answerConceptId="78280" > answerLabel="INH"/> > > > - Tariq > > _________________________________________ > > To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to > [email protected] with "SIGNOFF openmrs-implement-l" in the > body (not the subject) of your e-mail. > > [mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l] > _________________________________________ To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-implement-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

