How can I create the nested bulleted list in Appian
Discussion posts and replies are publicly visible
If it is to be created by the user, then using the richTextField or if it is to be done programmatically, then you have to use a combination of a!forEach() along with a!richTextDisplayFIeld() and add extra spaces on the left to make it look like it is the child of its parent (indentation)
The a!richTextBulletedList() can take an additional attribute of 'nestedList' which will automatically indent the list that you pass to it. For example:
a!forEach( items: fn!enumerate(5) + 1, expression: a!richTextDisplayField( value: a!richTextBulletedList( items: { a!richTextListItem( text: fv!item, nestedList: a!richTextBulletedList( items: a!forEach( items: fn!enumerate(3) + 1, expression: a!richTextListItem(text: fv!item) ) ) ) } ) ) )
results in:
Unknown said:add extra spaces on the left to make it look like it is the child
nooooooooooo