How to move up next line if previous line has no data?

How to move up next line if previous line has no data?

Forum member · Dec 20, 2012
Hi, I am using the below code to show address <recordArea id="ShipToRecordArea" x="-57" y="5" width="225" height="70" fontSize="10" textColor="#444444" font="Verdana"> <text> #SubscriberBusinessName# #SubscriberAddressLine1# #SubscriberAddressLine2# #SubscriberCity#, #SubscriberZipCode# #SubscriberStateAbbreviation#,#SubscriberCountryName# </text> </recordArea> here in some address, addressline2 coming blank but currently it preserve the white space, so how can i remove this white space if addressline2 has no value. is it any way to city move up side automatically if above line has no data. Thanks

Re: How to move up next line if previous line has no data?

Support · Dec 20, 2012
Hello, You are using a Record Area and placing a newline in between the fields. So even if the date in that field is empty or null the newline is being rendered so you are seeing the blank line when one of the fields has no value. To avoid these blank lines use the Formatted Record Area instead of the Record Area. Then modify your SQL statement to check the field value and append a <br> at the end only when there is a value. The Formatted Record Area will render the <br> as a new line on the PDF. Thanks, ceTe Software Support Team.