Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-7471

Improve all the service level error messages for missing required field

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 16.11.01
    • Fix Version/s: None
    • Component/s: ALL COMPONENTS
    • Labels:
      None

      Description

      Currently when a user submits a form with missing required fields, for instance creating a contactMech (Postal Address) from party profile screen.
      Here, in such scenarios the service engine returns missing field error message as:

          The Following Errors Occurred:
                The following required parameter is missing: [createPartyPostalAddress.city]
                The following required parameter is missing: [createPartyPostalAddress.address1]
                The following required parameter is missing: [createPartyPostalAddress.postalCode]
      

      Such error messages can be improved across the application by making it more user friendly like:

      Required Field Missing : Address Line 1.
      Required Field Missing : City.
      Required Field Missing : Postal Code.
      

      I'll review similar scenarios across the application.

        Attachments

        1. ImprovedUFMsgs.png
          116 kB
          Ratnesh Upadhyay
        2. ErrorMsgReturnedByServiceEngine.png
          121 kB
          Ratnesh Upadhyay

          Activity

            People

            • Assignee:
              diveshdut Divesh Dutta
              Reporter:
              upadhyay.ratnesh Ratnesh Upadhyay
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: