Auto fill data for checkbox group in forms no longer works in mautic 5.x

My Mautic version is: 5.2.8
My PHP version is: 8.3.25
My Database type and version is: MySQL 8.0.41

My problem is:

In Mautic 4 in forms (for example, a preference form), it was possible to map checkbox groups with a custom field (multiple selection) and to use the “auto fill data” setting to activate the checkboxes for the corresponding values ​​when the form is loaded.

When the form was loaded, the input fields of the checkboxes looked like this (correct value + checked):

image

Using the same in mautic 5, it renders some html fragments

and the code now looks for example like this (here the value is missing, in other cases there were multiple values in the value field):

In short, the correct values ​​are no longer recognized.

These errors are showing in the log: -

This is a serious bug because it is not possible to use forms with a preselection in Mautic 5!

a similar problem already here: HTML rendered when creating a checkbox group on Mautic 5 forms · Issue #12627 · mautic/mautic · GitHub

1 Like