[MGNLUI-5301] Have the ability to show multiple fields for the Switchable Field Definition Created: 26/Jul/19  Updated: 05/Aug/19  Resolved: 05/Aug/19

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

Type: New Feature Priority: Neutral
Reporter: Tou Xiong Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:
Visible to:
Matthew Harmon

 Description   

This will allow us to fine tune dialog definition based on user interaction and make the dialog less cluttered and more user friendly.



 Comments   
Comment by Christopher Zimmermann [ 05/Aug/19 ]

It is possible to put multiple fields in each of the "switches" of a Switchable field definition.

You can use the 'Composite' field in the switch.

 class: info.magnolia.ui.form.field.definition.CompositeFieldDefinition.

https://documentation.magnolia-cms.com/display/DOCS57/Composite+field

 

There is an example at line #463 here: 

https://demo.magnolia-cms.com/.magnolia/admincentral#app:resources:detail;/stories-app/apps/stories.yaml:view

I'll close this issue now, you can reopen it if you I misunderstood you, or this does not address your requirement.
 

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