Jump to content
  • 0
roattw

Hide blank fields in automatic email?

Question

I have a data page form that concludes with an automatic email send to a group and shows all the forms entries.  Often there are fields that are blank, not all fields are required.  But there are a lot of fields.  And these results go to a pager which has a line and character limit.  So with a lot of blanks th

Is there anyway to have the email reporting the fields to ignore BLANK entries?  The auto email looks like this, basically includes results of all the form fields.

 

2019-08-14_15-25-02.png

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I can't think of any other ways to do this but using Triggered Actions, although it may take a Loooong syntax having the sample email I saw. I was thinking of using case when statements that if the value is blank, then skip the field. Then concatenate them all in the message body. (Not actually a good idea). I'm not also sure if the HTML format can render some javascript and that can be an option too.

Share this post


Link to post
Share on other sites
  • 0

Hi All, 

I was able to make a workaround not to include blank fields in the Automatic email using Calculated Value. 

I used Virtual fields in this example. Here is the formula:

CASE WHEN '[@cbParamVirtual1]' = '' THEN '' ELSE 'Virtual 1: [@cbParamVirtual1]'
END
+ 
CASE WHEN '[@cbParamVirtual2]' = '' THEN '' ELSE '
Virtual 2: [@cbParamVirtual2]'
END
+ 
CASE WHEN '[@cbParamVirtual3]' = '' THEN '' ELSE '
Virtual 3: [@cbParamVirtual3]'
END
+ 
CASE WHEN '[@cbParamVirtual4]' = '' THEN '' ELSE '
Virtual 4: [@cbParamVirtual4]'
END

You can also test this DataPage. I did not hide the Virtual field 5 for the sake of testing.  You may hide it under the Advanced tab. 

image.png.64c3c7970b83de228f50e1629d413c0e.png

Then, on the Email options, use this VirtualField5.

image.png.cd22416343fb859e16d13c9b70936567.png

Hope this helps. 

 

Cheers! :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...