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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD