# Version 4.4.8 dynamic content isn't shown in mail

**URL:** <https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112>\
**Category:** Product Support\
**Created:** [May 23, 2023, 7:45am UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112 "2023-05-23T07:45:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![media31](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/media31/32/679_2.png) [@media31](https://forum.mautic.org/u/media31)\
**Post date:** [May 23, 2023, 7:45am UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/1 "2023-05-23T07:45:42Z")

</div>

My Mautic version is: 4.4.8

According to the github log ([Releases · mautic/mautic · GitHub](https://github.com/mautic/mautic/releases)), the bug with the unfilled dynamic content should be fixed for version 4.4.8.

Error see: [Dynamic content is empty in any condition](https://forum.mautic.org/t/dynamic-content-is-empty-in-any-condition/22626)

This is true so far. I can now save the dynamic content in the template without it disappearing.

BUT in a sent mail it is still not included. There is simply nothing instead of the dynamic content.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [May 23, 2023, 10:55am UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/2 "2023-05-23T10:55:18Z")

</div>

When you send an email - is this a test email send or a “real send to a segment” ?

---

<div class="post-metadata">

**Author:** ![media31](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/media31/32/679_2.png) [@media31](https://forum.mautic.org/u/media31)\
**Post date:** [May 26, 2023, 5:52am UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/3 "2023-05-26T05:52:56Z")

</div>

A real email to a real segment.

---

<div class="post-metadata">

**Author:** ![zerog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zerog/32/6924_2.png) [@zerog](https://forum.mautic.org/u/zerog)\
**Post date:** [May 29, 2023, 2:32pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/4 "2023-05-29T14:32:32Z")

</div>

I’m having the exact same problem. Emails only send the default content. Dynamic content on emails are totally ignored.

Also, when I save the email trying to use different conditions combinations when I go back to modify the email again the fields settings shows as empty with errors saying that a value must be picked for all fields.

No errors shown in the logs.

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [May 30, 2023, 10:38pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/5 "2023-05-30T22:38:56Z")

</div>

Are you using Legacy Editor (Froala) or the GrapesJS Editor?

I am asking because I tested the function and I was successful in implementing the Dynamic content in emails.  
Both types: Campaign emails and Segment emails.

As a filter for the variant, I used a custom field of type boolean and tested if equal to 1.

This worked. I made also a video (in romanian language) how to do it and also the test was live, recorded:

[![](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/6a861f26001e2bedc28b8e8922127875d40f939d.jpeg "Mautic 04 Email cu Conţinut Dinamic - Personalizare EXTRA") ](https://www.youtube.com/watch?v=_1iwXeHjCZc)

---

<div class="post-metadata">

**Author:** ![zerog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zerog/32/6924_2.png) [@zerog](https://forum.mautic.org/u/zerog)\
**Post date:** [June 2, 2023, 5:43pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/6 "2023-06-02T17:43:53Z")

</div>

I’m using GrapeJS and have also tested with the legacy builder getting the same results.

Thanks for the video.

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [June 2, 2023, 7:08pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/7 "2023-06-02T19:08:23Z")

</div>

Let us focus on legacy builder, as I know that in the GrapesJS builder the function is not working.  
What is your filter? what values do you use? how do you test?

---

<div class="post-metadata">

**Author:** ![zerog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zerog/32/6924_2.png) [@zerog](https://forum.mautic.org/u/zerog)\
**Post date:** [June 3, 2023, 1:41pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/8 "2023-06-03T13:41:11Z")

</div>

I have multiple conditions based on a custom field. It’s a select field.

 ![df](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/683965f477906992b6e145c7a210fbe8aaeceb1b.png)

I test using a form which sends the contact into a campaign that sends the email.

I send the email to a personal email account I have, But I have also tested with other emails.

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [June 7, 2023, 9:13pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/9 "2023-06-07T21:13:47Z")

</div>

I can say my experience, that perhaps is relevant also to you.

I created a **boolean** custom field, named “email confirmed”, of type **boolean** , with values: no and yes.  
Like in the picture (the values are in romanian language):  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0e3bc42da4b33001b1c8e0879962ef779864ace0.png)

What has caused the issue was the setting for the **Default value**.

If I have set the **Default value** to “no”, like in the picture, following did happen:

- let´s say, the contact had confirmed the email in the past, so the value of the custom field was “yes”.
- this contact had subscribed a form
- the value of this custom field was changed to “no”, even if this custom field was not in the form or something similar.

Therefore, the dynamic fields were not working after submitting any form (of course, the value of the custom field was garbaged afterwards, but that is another issue).

What I did was to set the **Default value** to “x” (_not set_) and the dynamic fields worked as expected:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/97c9d1595bb988c85ccbfaf114fa7fc16f7a2df5.png)

I assume this issue is a bug (and not a feature), but I had not the time to point it out (until now).  
I also assume, the bug is also for “ **Select** ” type. Perhaps you can confirm on that.

---

<div class="post-metadata">

**Author:** ![zerog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zerog/32/6924_2.png) [@zerog](https://forum.mautic.org/u/zerog)\
**Post date:** [June 9, 2023, 7:30pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/10 "2023-06-09T19:30:24Z")

</div>

Thanks for the recommendations @IonutOjicaDe . I checked my custom field settings and I don’t have a default value selected. On my side looks like this is not the issue.

For now I decided to give it a try to this plugin [Mautic Advanced Templates Bundle](https://github.com/Logicify/mautic-advanced-templates-bundle) It’s compatible with Mautic 4.4.0 and I have 4.4.9

Thanks to @joeyk who has made the recommendation several times in other posts but with another plugin that does the same.

This one works flawlessly. I decided to switch all my conditions on my emails to Twig using this plugin and all my problems are gone for now. Anyone having a hard time with dynamic content should give it a try until there’s an update.

If you are not a developer there’s a small learning curve involve but it’s really simple. It works with the new grapejsbuilder inside a mj-text label

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [June 9, 2023, 8:30pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/11 "2023-06-09T20:30:06Z")

</div>

Thank you for the tip about the plugin !

I will install it also … I did not know about this plugin and I was looking for a possibility to reuse some part of code for the emails, to change only in one place ; and with this plugin I will be able to do it.

---

<div class="post-metadata">

**Author:** ![zerog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zerog/32/6924_2.png) [@zerog](https://forum.mautic.org/u/zerog)\
**Post date:** [June 10, 2023, 2:42pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/12 "2023-06-10T14:42:05Z")

</div>

On my research I also found this plugin [Twig Templates for Mautic](https://mtcextendee.com/marketplace/twig-templates-for-mautic/) It’s a paid version.

Just in case you would like to give it a go.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [June 14, 2023, 1:41pm UTC](https://forum.mautic.org/t/version-4-4-8-dynamic-content-isnt-shown-in-mail/28112/13 "2023-06-14T13:41:36Z")

</div>

And here is the related issue in github:

[“no component or dynamic content item” error in GrapeJS builder CodeEditor and save · Issue #12481 · mautic/mautic (github.com)](https://github.com/mautic/mautic/issues/12481)

Thanks @abdulwahab
