Tailoring the Forms

The default forms generated for the user tasks can be improved. You may wish to re-arrange the fields on the form in something other than their default alphabetical order. In addition, the mandatory NeedBloodTest and NeedXRay parameters need to presented as radio buttons rather than as checkboxes. This is because they are mandatory fields, so need to be completed in all cases.

Procedure

  1. Select the Intake task. On the General tab, click on the Form button.
  2. A warning is displayed. Click OK. The address of a form for the task is now displayed.
  3. Click Open Form. The form displays.
    Warning: If an error message similar to the following displays instead, then delete the empty folders under Forms in Project Explorer, run Project > Clean, and try again.

    If at any point an error is generated saying that a form is out of sync with its event, select the Quick Fix to solve the problem. Warnings to the same effect can be ignored.

  4. The fields are displayed in alphabetical order. Re-arrange them so that the patient’s name and address are displayed first, and then the medical details.
  5. Click on the NeedBloodTest field. In the General tab, change the Control Type from CheckBox to Radio Group.
  6. Select the Properties tab.
  7. Edit the Label field for the two buttons to Yes and No, respectively, and the Value field to true and false.
  8. Repeat step 5 to step 7 for the NeedXRay field.
  9. Open the form for the Summary task. Delete the array fields, and arrange the remaining fields in your preferred order.
  10. Save the package.