IneedHelp
Novice

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: 

IneedHelp_1-1629737693721.png

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:

IneedHelp_0-1629737415106.png

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

IneedHelp_2-1629737815734.png

 

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

Labels: (1)
0 Kudos
Reply
1 Reply
allan
Contributor

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
Reply