• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Forms - API
    • None

      Issue Summary

      Required fields from a form can be empty if the issue is created through API using the public endpoint below, or through the frontend API used by JSM portal frontend.

      This also happens with a required field within a conditional section. If a section condition matches, the field within the section can be empty even if it's required. 

      This is because:

      • The frontend API does not validate whether a form was submitted with the request
      • Neither API validates required form fields are filled in

      Steps to Reproduce

      1. Create a form and mark a field as required.
      2. Raise a ticket using API and keep the required field empty.

      Expected Results

      The API should respect the field requirement and prevent the issue creation.

      Actual Results

      The issue will be created, but the form will show the required field as empty:

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [JSDCLOUD-14869] Requests with forms could be created with required fields empty

            No work has yet been logged on this issue.

              3dee2c89ed51 Mrunal Kharod
              877ac19b0be8 Nataniel Rocha
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated: