Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6491

Required Twin Column Field not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • 6.2.3
    • None
    • None

    Description

      When setting a Twin Column Field as required in a dialog, the user can save the dialog without choosing any item. (Using new 6UI or 5UI)
      The user should choose at least one item to save the dialog when the Twin Column Field is set to required.

      Steps to reproduce

      1. Create a Twin Column Field with required set to true
        form:
          properties:
                homeConditionsOne:
                  label: twin
                  $type: twinColSelectField
                  required: true
                  datasource:
                    $type: optionListDatasource
                    options:
                      - name: apartment
                        value: apartment
                      - name: balcony
                        value: balcony
                      - name: garden
                        value: garden
                      - name: house
                        value: house
        
      2. In the pages app, create a new Twin Column Field, do not select anything, and save
      3. See that you are allowed to save even with no value selected 

      Expected results
      You should get a "This field is required" or similar error
       
      Actual results
      You are able to save and there is no error.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              mdamborenea Monica Damborenea
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD