# SOLVED: Flatpick script error on date picker language by adding dynamic data

**URL:** <https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706>\
**Category:** Bugs\
**Tags:** v1-12-4\
**Created:** [July 8, 2025, 7:18am UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706 "2025-07-08T07:18:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![salwebs](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@salwebs](https://forum.bricksbuilder.io/u/salwebs)\
**Post date:** [July 8, 2025, 7:18am UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/1 "2025-07-08T07:18:23Z")

</div>

**Browser** : Chrome 110  
**OS** : macOS / Windows / Linux / etc.  
**URL** : Link to a page that illustrates this issue  
**Video** : Short screen recording that illustrates this issue (free tool: [jam.dev](https://jam.dev/))

In the form, on a field date picker I added the language with dynamic data. I added {echo:pll\_current\_language()}

 ![Captura de pantalla 2025-07-08 a las 9.22.08](https://forum.bricksbuilder.io/uploads/default/original/3X/0/a/0a575bd4d39fe4ca9bbff6b8f15f32a8feb57a13.png)

//added pll\_current\_language in the filter

 ![Captura de pantalla 2025-07-08 a las 9.21.26](https://forum.bricksbuilder.io/uploads/default/original/3X/0/c/0c5272086eb8688dc119e2d8eb1b0921b3b8162f.png)

The error, dynamic data is not rendering

 ![Captura de pantalla 2025-07-08 a las 9.16.20](https://forum.bricksbuilder.io/uploads/default/original/3X/f/b/fb9fd2f0949eb08cfde3b4b524deedf0bf7b6a04.png)  
 ![Captura de pantalla 2025-07-08 a las 9.16.51](https://forum.bricksbuilder.io/uploads/default/original/3X/9/0/90d13ab446db47657907ee8e2575d36994261934.png)  
 ![Captura de pantalla 2025-07-08 a las 9.17.07](https://forum.bricksbuilder.io/uploads/default/original/3X/5/f/5f98945e3b6fc972f9e712ad1341425fd887eb52.png)

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [July 8, 2025, 8:57am UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/3 "2025-07-08T08:57:15Z")

</div>

Hi @salwebs,

thanks you for your response. It looks like this was already fixed in the 2.0 version. If you have a chance, could you try to update to 2.0-RC2 and let me know if it’s still happening?

Thank you,  
Matej

---

<div class="post-metadata">

**Author:** ![salwebs](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@salwebs](https://forum.bricksbuilder.io/u/salwebs)\
**Post date:** [July 25, 2025, 9:56am UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/4 "2025-07-25T09:56:52Z")

</div>

Any way to fix it by my own? O don’t want to upgrade this site to bircks 2. One site was updated and was broken. I don’t hve time to fix upgrade issues right now.

Thanks

---

<div class="post-metadata">

**Author:** ![salwebs](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@salwebs](https://forum.bricksbuilder.io/u/salwebs)\
**Post date:** [August 1, 2025, 2:21pm UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/5 "2025-08-01T14:21:02Z")

</div>

![Captura de pantalla 2025-08-01 a las 16.15.21](https://forum.bricksbuilder.io/uploads/default/original/3X/f/a/fa48d51f3c956c55d7349b21861252f2e2c2479c.png)

can you confirm that the “Error message” is also not working?

thanks

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [August 4, 2025, 7:09am UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/6 "2025-08-04T07:09:03Z")

</div>

Hi,

I’ve tested in the latest 2.0.1 version, and it should work. In which version are you testing on?

Also, I’m sorry that I’ve missed your last message, but sadly, there is nothing you can do on your own, unless you edit the Bricks theme directly.

Matej

---

<div class="post-metadata">

**Author:** ![salwebs](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@salwebs](https://forum.bricksbuilder.io/u/salwebs)\
**Post date:** [August 4, 2025, 11:02am UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/7 "2025-08-04T11:02:11Z")

</div>

This is the point. I updated this site to 2 and got completly broke. If you can give me the fix and I’ll edit bricks meanwhile I don’t updagrade I’ll appreciate it.

Thanks

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [August 4, 2025, 12:25pm UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/8 "2025-08-04T12:25:23Z")

</div>

Please write me a DM, and I’ll provide you with files that you need to change.

Matej

---

<div class="post-metadata">

**Author:** ![salwebs](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@salwebs](https://forum.bricksbuilder.io/u/salwebs)\
**Post date:** [October 15, 2025, 1:17pm UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/9 "2025-10-15T13:17:56Z")

</div>

In v2 is now working but is failing in the email notification:

 ![Captura de pantalla 2025-10-15 a las 15.16.47](https://forum.bricksbuilder.io/uploads/default/original/3X/d/8/d8768ad63d2c5742fc0e99b83323792994e7548e.png)  
 ![Captura de pantalla 2025-10-15 a las 15.16.57](https://forum.bricksbuilder.io/uploads/default/original/3X/d/6/d604bd6fed5a147439e0367682d32df6f2a014bb.png)

I wrote you via dm, but add this here so people can know when it is fixed.

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [October 15, 2025, 1:45pm UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/10 "2025-10-15T13:45:48Z")

</div>

Hi @salwebs,

let’s discuss it here then. Can you let me know if a simple dynamic tags work? `{post_title}` for example?

Also, if you put this dynamic tag in the basic text field, what do you see?

Best regards,  
Matej

---

<div class="post-metadata">

**Author:** ![salwebs](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@salwebs](https://forum.bricksbuilder.io/u/salwebs)\
**Post date:** [October 15, 2025, 3:10pm UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/11 "2025-10-15T15:10:29Z")

</div>

the function trans\_field is basically a function that uses get\_field (acf), and is gettnig the data from an option page.

{post\_title} is not rendering too.

The dynamic tag is working on the form.

The problem is that probably internally the label property of the field is not rendering when running in the backend to send the data of the form to the notification email.

The notification email has the default value which is all the fields in the form.

---

<div class="post-metadata">

**Author:** ![salwebs](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@salwebs](https://forum.bricksbuilder.io/u/salwebs)\
**Post date:** [October 15, 2025, 3:15pm UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/12 "2025-10-15T15:15:46Z")

</div>

If I leave the “Email content” empty is not working (which by default retrieve the fields). But if I use the {{all\_fields}} is working properly.

 ![Captura de pantalla 2025-10-15 a las 17.14.22](https://forum.bricksbuilder.io/uploads/default/original/3X/8/4/841c9db187b7c9f1666e45cb3345ee132b6c6d46.png)

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [October 16, 2025, 5:49am UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/13 "2025-10-16T05:49:02Z")

</div>

Ok, I see. Thank you for clarifications @salwebs.

I was able to replicate the issue, but the current issue have nothing to do with Flatpickr like it’s stated in the title of the topic, so I would ask you if you can open a new topic about the curren issue and tag me there, so that I notice it. You can also include a link to this one.  
Then I can create and connect the task to it.

Thank you,  
Matej

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [October 27, 2025, 2:13pm UTC](https://forum.bricksbuilder.io/t/solved-flatpick-script-error-on-date-picker-language-by-adding-dynamic-data/33706/14 "2025-10-27T14:13:55Z")

</div>

We fixed this issue in Bricks 2.1.3, now available as a one-click update in your WordPress Dashboard.

Please take your time to read the [changelog entry](https://bricksbuilder.io/release/bricks-2-1-3/) before updating, and let us know if you continue to experience issues.
