How can we create a rich text display menu as showing in the attached format having sub list too.
Discussion posts and replies are publicly visible
{ a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextBulletedList( items: { "Item 1", a!richTextListItem( text: "Item 2", nestedList: a!richTextBulletedList( items: {"a", "b"} ) ), a!richTextListItem( text: "Item 3", nestedList: a!richTextBulletedList( items: {"c", "d"} ) ), "Item 4" } ) } ) }
Hi Stefan Helzle
thanks so much. very close to my AC but my requirement for this code is under a foreach loop.
So i shared the updated code provided by you as per my secnario & what error i got while implementing the same.
{ a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextBulletedList( items: a!forEach( items: { "Item1", a!richTextListItem( text: "item2", nestedList: a!richTextBulletedList(items: { "a", "b" }) ), a!richTextListItem( text: "Item 3", nestedList: a!richTextBulletedList(items: { "c", "d" }) ), "Item 4" }, expression: a!richTextItem(text: fv!item) ) ) } ) }
Hi om786 Please Use the below code which is matching your scenario{ a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextBulletedList( items: a!forEach( items: { "Item1", a!richTextListItem( text: "item2", nestedList: a!richTextBulletedList(items: { "a", "b" }) ), a!richTextListItem( text: "Item 3", nestedList: a!richTextBulletedList(items: { "c", "d" }) ), "Item 4" }, expression: fv!item ) ) } )}
Hi om786 , in your code under expression you have passed richtextItem istead, try passing fv!item so that the error will be resolved and try to use this code to get the required output.