Introduction


The OpenMRS Form Builder platform simplifies and partially automates the process of generating user interface forms in OpenMRS 3.

Links and ideas that are important to this text:


What is the Form Builder?


The Form Builder is found at this address:

The Form Builder is an automation tool/website for auto-generating form schema JSON files which can be later loaded into the Form Engine to auto-create micro-frontend user interface forms.

This means the UI/UX developer does not have to manually create the user interface forms. And any technical/or non-technical person can use the form builder to generate these form JSON files.

How to use the Form Builder


Requirements:

In the address bar, enter the form builder URL: https://dev3.openmrs.org/openmrs/spa/form-builder(opens in a new tab)

The main login form will open:

image-20240423-041637.png

After the login form is loaded, enter all the required details in the inputs:

Once the correct details are entered, the platform will authenticate your login and direct you to the dashboard as depicted below.

image-20240423-041905.png

To initiate the creation of a new form, click on Create New Form located at the top right. This action will start the process of creating a new Form schema.

image-20240423-042227.png

Clicking the Create New Form + button will lead you to the interface displayed below. Take note of the preview and the Interactive Builder tabs available.

image-20240423-042255.png

To start building a form, select the Interactive Builder tab to access the builder page as displayed below:

image-20240423-042525.png

Click on the Start building text link. A popup window requesting the form details will appear as shown below:

image-20240423-042626.png

Provide the form name and the form description within the respective fields.

image-20240423-043054.png

Choose create form button to initiate the form creation process.

image-20240423-055531.png

The next step is to add a page within a form. Click on the Add page text link as shown below to incorporate a page into your form.

image-20240423-055638.png

Enter the page name in the pop-up textbox that appears.

image-20240423-055819.png

After entering the page name, click on the Save button to successfully save the page and proceed.

image-20240423-055850.png

Next, click on the Add section text link to add a section to your form.

image-20240423-055917.png

Enter the section name in the provided pop-up text box.

image-20240423-060101.png

Select Save to save the section added to the form.

image-20240423-060128.png

Next, add a question to your form by clicking on the Add question text link. Simply select the Add question text link.

image-20240423-060307.png

Note that a question has several metadata fields that you need to fill out on the pop-up form entry. These fields include:

Here is an example of date field type question:

image-20240423-060528.png

Here is an example of multi-check field type question:

image-20240423-060656.png

Here is an example of multi-check field type question displaying all the concept answers selected:

image-20240423-060721.png

Once you have filled out all the details for the question, click on Save to save it.

image-20240423-060748.png

You can now navigate to the Preview Form tab to preview how the form will appear when rendered.

image-20240423-060812.png

Once finish building the form, click on Save to save your final form. A popup will appear prompting you to enter details such as:

image-20240423-060847.png

Finally, the form is ready for adding to the backend for rendering.

image-20240423-061044.png