[MGNLUI-6068] MultiValue: make values editable as it was in M5 Created: 23/Jul/20  Updated: 13/Jan/21  Resolved: 28/Aug/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Anja von Gunten Assignee: Jorge Franco
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1h
Original Estimate: Not Specified

Attachments: PNG File Bildschirmfoto 2020-07-24 um 11.02.29 Kopie.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: M6 UI & UX Improvements
Sprint: CM & OC 10
Story Points: 5

 Description   

In MultiValue field: the values that have been added were also editable on click, meaning there was a "select another" button, value could be changed.

Bring functionality of this field in par with M5.



 Comments   
Comment by Jorge Franco [ 28/Aug/20 ]

This is obsolete: in the definition of the multi field, there is a fieldEditable property, that by default is true. In our current tour demo we have a few fieldEditable: false, like in tourCarousel.yaml:

 

form:
  tabs:
    - name: tabMain
      fields:
        - name: tours
          class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
          buttonSelectAddLabel: field.link.select.add
          field:
            class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
            targetWorkspace: tours
            appName: tours
            identifierToPathConverter:
              class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
            fieldEditable: false
            label: tours
            buttonSelectNewLabel: field.link.select.new
            buttonSelectOtherLabel: field.link.select.another
        - name: showTourTypes
          class: info.magnolia.ui.form.field.definition.CheckboxFieldDefinition
          defaultValue: true
          type: Boolean

So only if fieldEditable is set to false, the multivalve is readOnly, any other case you can edit it.

Generated at Mon Feb 12 09:32:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.