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

Switchable field only displays the first field of multi-field forms

    XMLWordPrintable

Details

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

    Description

      The switchable field only displays the first field when the form has multiple fields.

      Reproduce
      Example configuration

      form:
        properties:
          switchable:
            label: Switchable
            $type: switchableField
            field:
              $type: radioButtonGroupField
              layout: horizontal
              datasource:
                $type: optionListDatasource
                options:
                  - name: foo
                    value: foo
                    label: Foo
                  - name: bar
                    value: bar
                    label: Bar
            itemProvider:
              $type: jcrChildNodeProvider
            forms:
              - name: foo
                properties:
                  foo:
                    label: Text 1
                    $type: textField
                  foo2:
                    label: Text 2
                    $type: textField
              - name: bar
                properties:
                  bar:
                    label: Rich text
                    $type: richTextField
                  bar2:
                    label: Text
                    $type: textField
      

      Actual
      When selecting the option foo or bar only the first field is shown.

      Expected
      The entire form should be shown

      Notes
      Works in versions previous to 6.2.8

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                asiska Adam Siska
                rgange Richard Gange
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD