Skip to main content
October 10, 2022
Question

new line

  • October 10, 2022
  • 9 replies
  • 2 views

Hello, can anyone suggest me how to add a new line in appian?

Code:

user(loggedInUser(),"firstName")
& " " &
user(loggedInUser(),"lastName")
& " " &
user(loggedInUser(),"email")

The output should be:

Beast Hulk

green.hulk@avengers.com

    9 replies

    mikes0011
    Brainy
    October 10, 2022

    It depends on where you are trying to have this output appear.  If, for example, you're showing it in a read-only paragraph field on an interface, you can simply insert a linebreak character ( char(10) ) anywhere you want a linebreak.  If your use case is something else, though, the answer is probably different.

    The Expression Guru
    October 10, 2022

    I am trying to execute it on expression editor and by using char(10), the email is not printing on a new line.

    mikes0011
    Brainy
    October 10, 2022

    you would need to switch expression editor's output to "Raw" mode to correctly see the linebreaks created by char(10).  That's why I specified a read-only Paragraph Field on an interface, as this would also display correctly there.

    The Expression Guru