Misleading error message is shown when request creation fails in JSM Portal because of character length validation or other reasons

XMLWordPrintable

    • 1,952
    • 48

      Issue Summary

      When a user submits a ticket via the JSM portal for a request type which has a short text field that exceeds the field limit of 255 characters, request creation fails with an incorrect error message indicating that a hidden required field does not have a valid default value.

      Note - There is no required field in this scenario. The error message directs administrators toward hidden-field and default-value configuration, rather than identifying the actual character-length violation.

      Steps to Reproduce

      1. Create or use a JSM project with a request type that does not have any hidden fields. Ensure all default values are set correctly.
      2. Add a Description field of type short text to the request type .
      3. Enter more than 255 characters in the Description field.
      4. Submit the request through the customer portal.

      Expected Results

      • Request creation is rejected because the Description exceeds the permitted length.
      • The customer receives a clear message such as:
        • Description can't exceed 255 characters
      • A hidden-field/default-value message is displayed only when a required hidden field genuinely lacks a valid default value.

      Actual Results

      • Request creation fails.
      • The customer receives a misleading hidden-field/default-value error.
        • This form contains a hidden field that does not have a valid default value configured."
      • The actual character-length validation error is not presented clearly.

      Workaround

      Forms let you set minimum and maximum characters for fields:

      You can set the maximum to 250~ and it will give you a more meaningful message.

              Assignee:
              Unassigned
              Reporter:
              Bhaargavi Natarajan
              Votes:
              32 Vote for this issue
              Watchers:
              29 Start watching this issue

                Created:
                Updated: