I'm trying to make personalization look like a mail merge, where the field and line completely disappear when no data exists. Is there any way to do this?
For example, in word, if I had the address of Mr. Bob Smith and I didn't have the address of Mrs. Alice White it would look like this:
--
June 21, 20204
Mr. Bob Smith
123 Street
New York, NY 10065
Dear Mr. Smith,
-----
June 21, 20204
Mrs. Alice White
Dear Mr. White,
------
But what D365 email personalization does is hold space where the field is and your only choice is to change it if it's empty or says something else:
Below is a screenshot of my test.
When the personalized placeholder has no value, a blank line will be left.
The personalized placeholder appears as a P tag in HTML.
Unfortunately, the HTML of the email does not support dynamically showing or hiding tags using JavaScript.
Therefore, you can only set a default value to be displayed when no value is present.
Best Regards, Dengliang Li
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.