Skip to main content
faraza4154
December 19, 2022
Question

Nested Bulleted List

  • December 19, 2022
  • 3 replies
  • 0 views

How can I create the nested bulleted list in Appian 

3 replies

harshitb6843
December 19, 2022

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) 

mikes0011
Brainy
December 19, 2022
add extra spaces on the left to make it look like it is the child

nooooooooooo

The Expression Guru
stewart.burchell
December 19, 2022

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: