Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-73

Add Location form cannot submit after a validation tooltip appears and goes away

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      The addressLayout portlet uses a custom validation script before allowing a new address to be submitted. If you fill out all the fields by hand, the latitude and longitude tooltips appear while filling out those fields (a special format is required). After this point, even if the tooltips disappear once the format is correct, the form cannot be submitted. Pasting valid data into the form, hence keeping the tooltips from showing up, allows the form to be submitted.

      In addition, the error message (pulled from messages.properties), incorporates HTML but it is displayed in a Javascript alert(), so the full HTML is visible. This should either be displayed within a specially-designated alert div or a dialog, but not via alert().

      I would like to replace the custom validator used in addressLayout.jsp with the JQuery Validator Plugin, since it is quick to implement and could easily be integrated with all of our forms. This may require some feedback from core designers before implementation, and it may be more work than it is worth.

        Attachments

          Activity

            People

            Assignee:
            bwolfe Ben Wolfe
            Reporter:
            jeremy Jeremy Keiper
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: