Hide Empty Variables in Email

Hi, I am new to Nintex Workflow for Office 365 and want to know how to hide/remove an empty variable from an email. I have a form with 10 fields for pages and 10 fields for documents and submits to a SP list. When a new item is created, a notification email is sent to the user verifying what was submitted and that we received the request.  The page and doc columns are mapped  to variables that are added in the email like this: 


The issue is if the user only submits one item, the empty variables show up as a empty line.  I would like the email to be more compact and have the empty variables not show up as a new line. 

Example email:


How I would like the email to display (nice and compact):



How do I hide/remove an empty variable from an email?

Labels: (1)
0 Kudos
1 Reply

Re: Hide Empty Variables in Email

Several solutions : 
- Use a build string action to concatenate all you values (with line returns), the use a regew to get everything except empty lines.
- Add all your variable in a collection and remove empty values in your collection.
- Use a build string to create a HTML list, and insert your variable in the email.

0 Kudos