Have you implemented OpenMRS? Please participate in the Implementation Site Survey. If you already have, thank you!
The HTML Widgets module provides a set of reusable HTML form field widgets in order encapsulate the common input requirements for OpenMRS. This is an "under the hood" module, meant to be something that developers can utilize in their code. The intention is to provide a compelling alternative to FieldGen, with the following key distinctions:
The htmlwidgets module ships with a single web page which aims to both demonstrate and test each of the default Widgets. Once you have installed the module, you can access this page on your local server at :
Currently, the most common way of using the widgets is via the supplied tag library. However, they can also be instantiated and rendered programmatically. Below will show the most common use cases via tag library...
1. First, you need to import the tag library into your JSP like this:
2. Now, you can add form fields in the following ways:
This will create a select list allowing the user to pick a Location, populated by default with the current value of the encounter's Location