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

dateField tag: Need ability to specify input id that is unique from input name

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.9.2, Platform 1.10.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Currently, the dateField tag takes a parameter "formFieldName".

      The underlying input tag created by this tag has its id and name attributes set to whatever is specified in "formFieldName".

      I am including multiple forms with the same fields on a single page, so I need a way to specify unique ids.

      Solution is to add a new (optional) attribute "formFieldId" and then set the input id="${formFieldId != null ? formFieldId ? formFieldName}"

        Attachments

          Activity

            People

            • Assignee:
              mogoodrich Mark Goodrich
              Reporter:
              mogoodrich Mark Goodrich
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: