Paragraph field with multiple lines

I am looking for code to have a paragraph field which should allow user to enter multiple phone numbers, each number should be in a separate line without any separator like semicolon (it is like when we create APPIAN Constant for text/number array, the paragraph will take each value in a separate line. I do also need the same). Please let me know if you idea about it.

Thanks,

Shanmugapriya K

  Discussion posts and replies are publicly visible

Parents
  • Hello Shanmuhapriyak,

    As per my understanding you are able to enter multiple phone number in a paragraph field but when you display it is showing in single text without <br> and  if that is the case then you  can use below code to achieve the requirement.

    load(
    local!phonenumber,
    a!formLayout(
    contents:
    {
    a!paragraphField(
    label:"phone number" & local!phonenumber,
    value:local!phonenumber,
    saveInto: local!phonenumber
    ),
    a!richTextDisplayField(
    value: a!richTextBulletedList(
    items: a!forEach(
    items: local!phonenumber,
    expression: a!richTextItem(
    text: fv!item
    )
    )
    )
    )
    }
    )
    )

Reply
  • Hello Shanmuhapriyak,

    As per my understanding you are able to enter multiple phone number in a paragraph field but when you display it is showing in single text without <br> and  if that is the case then you  can use below code to achieve the requirement.

    load(
    local!phonenumber,
    a!formLayout(
    contents:
    {
    a!paragraphField(
    label:"phone number" & local!phonenumber,
    value:local!phonenumber,
    saveInto: local!phonenumber
    ),
    a!richTextDisplayField(
    value: a!richTextBulletedList(
    items: a!forEach(
    items: local!phonenumber,
    expression: a!richTextItem(
    text: fv!item
    )
    )
    )
    )
    }
    )
    )

Children