How to add line breaks to forms

Appian Employee

hi, if i have a forms competent, and i want the instructions to have line breaks in the text, how would i go about doing that? i've already tried creating an expression like this: ="text"&char(10)&char(12)&"text2", but it had no effect.

OriginalPostID-23664

OriginalPostID-23664

  Discussion posts and replies are publicly visible

Parents
  • Hi Anu,
    Appian Instructions doesn't support the line breaks such as char(13). Have to use the text field with read only,it might be looks different like this, this font style may differ from the instruction font style, nothing worry about font style you can follow this code

    a!formLayout(
    label: "Form",
    contents: {
    a!textField(
    instructions: "325345",
    value: "hdfdffjdhd" & char(
    10
    ) & "dfghg",
    readOnly: true()
    )
    }
    )
Reply
  • Hi Anu,
    Appian Instructions doesn't support the line breaks such as char(13). Have to use the text field with read only,it might be looks different like this, this font style may differ from the instruction font style, nothing worry about font style you can follow this code

    a!formLayout(
    label: "Form",
    contents: {
    a!textField(
    instructions: "325345",
    value: "hdfdffjdhd" & char(
    10
    ) & "dfghg",
    readOnly: true()
    )
    }
    )
Children
No Data