cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

hide field in email if blank

I have an email which has a series of Labels and Properties, for example:

Laptop make: Hewlett Packard

Mobile model:

Monitor type: SA450

Extension: 9999

What I would like to do is to the hide any line where the data field is blank; in this example "Modile model". I also don't want to have a blank line in the email. So what I would like to see is

Laptop make: Hewlett Packard

Monitor type: SA450

Extension: 9999

Tags (1)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: hide field in email if blank

you have to prepare mail content into a variable.

if a field has a value - append it to variable, if it doesn't have - do not append it.

then just insert variable into mail body.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: hide field in email if blank

Hi ‌,

Use 'Set a Condition' to check the 'Mobile model' is empty or not. Have 2 send notification objects.

If 'Mobile model' is empty, remove 'Mobile model' line from send notification object else have 'Mobile model' value in send notification object.

Thanks,

Lakshmi C

0 Kudos
Accept as Solution Reply