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

switchableField ignoring required property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.2.8
    • 6.2.7
    • None

    Description

      Steps to reproduce

      1.  Create a switchableField as follows:
        form:
          properties:
            title:
              $type: switchableField
              field:
                $type: radioButtonGroupField
                layout: horizontal
                required: true
                datasource:
                  $type: optionListDatasource
                  options:
                    - name: foo
                      value: foo
                    - name: bar
                      value: bar
              itemProvider:
                $type: jcrChildNodeProvider
          layout:
            $type: tabbedLayout
            tabs:
              firstTab:
                label: First
                fields:
                  - name: title
        footerLayout:
          $type: defaultEditorActionLayout
          primaryActions:
            commit: commit 
      1. Create the component on a page
      2. Check you can save it without making any selection

      Expected results

      You must make any selection for saving the component

      Actual results

      The switchable field can be saved empty 

      Workaround

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                ccantalapiedra Carlos Cantalapiedra
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD