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

Using one required field in mutlivalue composite field will hint all fields as required

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Neutral
    • None
    • 6.0
    • forms
    • Windows 10

    Description

      We using a multivalue field with a composite field inside it:

      - name: assets
        fieldType: multiValue
        label: fields.assets
        transformerClass: info.magnolia.ui.form.field.transformer.multi.MultiValueSubChildrenNodePropertiesTransformer
        field:
          name: asset
          label: ' '
          layout: vertical
          fieldType: composite
          transformerClass: info.magnolia.ui.form.field.transformer.composite.NoOpCompositeTransformer
          fields:
            - name: headline
              fieldType: text
              placeholder: msg.enterToOverwriteAssetDescription
      
            - name: description
              fieldType: text
              rows: 2
              maxLength: 160
              placeholder: msg.enterToOverwriteAssetHeadline
      
            - name: asset
              buttonSelectOtherLabel: msg.selectAsset
              label: ' '
              fieldType: assetLink
              required: true
              appName: assets-app
      

      As you can see, only the last field (asset) is marked as required. But the tooltip message "This field is required" is also shown when hovering over the other non-required fields headline and description

      Do not break the tooltip per field, but enhance the message within the tooltip to be more specific.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                martyglaubitz Marty Glaubitz
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD