[MAGNOLIA-7856] OptionGroup selectedTrue failure Created: 28/Jul/20  Updated: 18/Aug/20  Resolved: 18/Aug/20

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

Type: Bug Priority: Neutral
Reporter: Aaron Assignee: Mercedes Iruela
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Using OptionGroup in a dialog to have a checkbox preselected using  "selected:true" does not work on anything other than a component dialog. Trying to use it on an area or page dialog it will not work. If this is intended, at least make note in the docs that only component dialogs can have pre selected fields.

If this is a bug, maybe add "selected: true" property to the Checkbox field while you're at it



 Comments   
Comment by Mercedes Iruela [ 31/Jul/20 ]

Hi Aaron,

There are no known issues related to this in Magnolia 5.7. Could you describe the steps and include the needed templates to reproduce and confirm the issue??

Thanks.

Comment by Aaron [ 04/Aug/20 ]

Follow the steps for adding an OptionGroup on a page dialog or area dialog NOT on a component dialog. Then try to set  "selected: true" as a property.  It will not be selected by default. 

define a dialog for a page or an area. 

Comment by Mercedes Iruela [ 05/Aug/20 ]

We tested it using this definition:

form:
tabs:
- name: tabTitle
   label: Title
   fields:
- name: titleSelect
   fieldType: optionGroup
   multiselect: true
   type: String
   label: Title to use
   options:
    - name: pageTitle
       label: Page title
       selected: true
    - name: navigationTitle
       label: Navigation title
       value: navigationTitle
    - name: none
      label: None
      value: none

An it works as expected.

Comment by Mercedes Iruela [ 18/Aug/20 ]

Hi Aaron,

I am closing this ticket, we hope the issue is solved in your end. If the issue persist, please, do not hesitate to open a support ticket.

Regards,

Mercedes

Generated at Mon Feb 12 04:27:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.