Merging text fields, empty ones will not appear

markdown19.2c

 

Merging Text fields is easy, works in this way:

@Text1 + @Text2 + @Text3

Of course, you can merge text that is in ” “, for example:

“Here is text 1: ” + @Text1 + “\nHere is text 2:” + @Text2

But what happens if some text fields are empty? We would like to have a big text field with all the text fields that have a value. You can achieve that by the following code:

(@Text Field 1 ? @Text Field 1 : “”) + “\n” + 
(@Text Field 2 ? @Text Field 2 : “”) + “\n” + 
(@Text Field 3 ? @Text Field 3 : “”) 

/* ——————————————————————————————————-

Created by BendixKiel ApS – Copenhagen based Podio Preferred Partner -with more than 6 years of experience in helping organizations implement Podio. Please feel free to contact us if you need help evaluate, structure or implement Podio in your organization.

BendixKiel ApS www.bendixkiel.org +45 71 99 05 80 anders@bendixkiel.org

———————————————————————————————————– */

 

We are merging 3 text fields here, all you need to do is replace the values @Text Field with your own text fields. 

Thus, the following changes in “Modify Template”:

markdown19.1

give us the following result:

markdown19.2a

 

In case we did not fill in some Text fields, results will be the following:

markdown19.2b


markdown19.2c

 

No comments yet.

Leave a Reply