Hello! Is it possible to include โnew lineโ characters to strings/text inside formulas? How would new lines (or carriage returns) be represented? Thank you! Edit: for example, I want to add a linebreak in a concatenate function. CHAR() doesnโt seem to work.
I donโt understand what youโre trying to say here? Example?
I want to include a linebreak in a concatenate function, for instance
@Mobile_Tuberculosis hrmmm not sureโฆ @Aleksi_Alkio
@Mobile_Tuberculosis Just put a line break in quotes:
โthis is line one and this is line twoโ
Thanks
@tony. I tried it before and it didnโt work; I guess the function was put in when I wasnโt looking. This is great. Thanks again!
I wanted to do this, and it worked putting a line break in. The only problem was, when I came to export that column out to a pdf template, the line breaks disappeared, and the words ran into each other in the pdf template.
When using the CONCATENATE expression, you can use it like thisโฆ
CONCATENATE(โThis is line oneโ,"
โ,โThis is line twoโ,โ
",โEnd ofโ)
Will this work for virtual Longtext column? I have tried the same. but it doesnโt work. please advise.
Thanks.
John
Please post a screenshot of the complete expression youโre using.
This works well. Howeverโฆ
Iโm using a table in a template, with multiple field references in the right-hand column across many rows. Itโd be nice to have some rows appear conditionally. Thus:
---------------
Yadayada<<if(Eval=โYโ,โ
---------------
โ&[Evalfield1]&โ
---------------
โ&[Evalfield2]&โ
---------------
โ&[Evalfield3]&โ
---------------
โ&[Evalfield4]&โ
---------------
โ&[Evalfield5]&โ
---------------
โ),โโ)>>Yadayada
---------------
This method will not work in that case; the actual html of the table causes an error for each table row traversed by the line-broken literal:
(I canโt post the text of the error here for the same reason)
It would be nice if that could all be escaped, but I wouldnโt have any idea how to do that, much less do it and make the html still be effective in creating the table. ๐
CRLF is pretty simple, so I can see how that can work. Unfortunately it canโt handle anything more complex (note that I tried tripple quotes to break the literal up; it didnโt work with single quotes either).
It also canโt handle comments in the template document (which is darned unfortunate, since documenting what the heck one is doing with complex conditionals in a template would be handy to have in the document itself using something one would hope would be totally meta, such as document comments), as someone has noted elsewhere. Here, the word โLevelโ (a fieldname) has a comment attached to it:
Argh.
Maybe this?
CONCATENATE(
"This is line oneโ,
"<BR/>โ,
"This is line two",
"<BR/>",
...
)
That doesnโt work with Doc templates. How can we insert line breaks in the template?
In the App, yes. It writes them on separate lines in the spreadsheet (within the same cell). But not in a pdf template in a workflowโฆ it doesnโt maintain the line breaks.
@Green_Gorilla Thatโs true. It will work with the Email body, but not with the Doc template.
Possible to be able to implement something for this? Starting to see some future use cases for it.
Has anyone found a way to insert line breaks via code in Doc templates?
Like <<CONCATENATE("Hello, br attribute goes here, โWorld!โ)>>
John Henry Joseph
QA/QC Manager, SHEQ Department, Bahrain
Raised on 11/6/2020 12:40:39
I want to show in Card typeโฆ screenshot is below.
Please advise.
Thanks.
It would appear the card view cannot display LongText values.
You mean multiline in virtual column text field will serve the purpose?
That question makes no sense to me.
I think Steve is right as I just tried to do the same thing. I have a LongText field with CR/LF in it and Card View just ignores this and displays as a single line of text, wrapping as it sees fit.
Somewhat relatedโฆI added a line break but my line spacing is way off. iโm trying to build a dashboard and show a large number. Format rule is bold, green and bumped up to 1.2 font size. How do I space this out so itโs legible?
Forgot to mention this is a Show Type column in a Detail Viewโฆonly showing the one row.
I solved by using an extra line break for spacing.
Expression:
COUNT(filter(Monitoring,[Status]=โActiveโ))&"
โ&โActive Monitoringโ&โ
"&โEventsโ
Result:
CONCATENATE( [ColumnA],"
โ,[ColumnB],โ
",[ColumnC])
Im not sure if it works, but it has been marked as solution in other posts
En la expresiรณn CONCATENATE, no funciona nada de lo que habรฉis publicado aquรญ, yo lo escribo como habรฉis dicho:
CONCATENATE([CCAA/FSS] ,"
โ,[AF INAP],โ
",[HORAS])
y se me queda todo junto en una linea con un campo tipo "longtext", en una vista tipo "Card", llevo mรกs de 5 horas con este tema y si no se puede hacer, lo que se tiene que comentar es que es imposible y ya estรก.
On:
Card View
Virtual column type LonText
Neither CONCATENATE and & works for me.
What is the context around what you're trying to do? ie onboarding view, Show column, Display text??
User | Count |
---|---|
43 | |
27 | |
24 | |
23 | |
13 |