Hide Empty Variables in Email

  • 23 August 2021
  • 1 reply
  • 44 views

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: 

19377i5052002A545069A3.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:

19376i51E79B3C331809FD.png

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

19378i71C3D6E3EED9F421.png

 

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


1 reply

Userlevel 4
Badge +9

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.

Reply