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
Discussion posts and replies are publicly visible
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.
I am trying to execute it on expression editor and by using char(10), the email is not printing on a new line.
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.