SMS blank lines

I have a small app that sends out SMS messages on a daily basis. In the sms message I use

<<if:isnotblank([entry details])>><<[entry details]>><<end if>>

Text looks like this

Entry: Meeting with CTO                                                                                                                                                    Date: 6/27/2023                                                                                                                                                                      Time: 10:00 am                                                                                                                                                                                                                                                                                                                                                                          Document: https://google.com/doc/12345qwert 

The blank line between "time" and "document" is where the "entry details" would go if it were not blank. When the Text is sent out it does not include the empty fields which is correct but it does leave a blank line which is ok but it would be nice to remove all the empty lines, is there a way to condense the text so there are not empty place holders ?

 

0 1 215
1 REPLY 1

I have done something similar for addresses in document templates.  I do recall an issue with blank lines being inserted when the Address2 line was blank.  It's fuzzy but I seem to remember that originally had them implemented on a single line like you and to fix the blank line I needed to break the statement up...like this:

<<IF: ISNOTBLANK([Address 2])>>
<<[Address 2]>>
<<EndIf>>

I assume you are inserting this in the Body area.  If it doesn't work then try creating a Body Template to see if that is applied differently 

Top Labels in this Space