terminal42 / contao-mp_forms

Real step separation in the form generator of the Contao Open Source CMS
25 stars 13 forks source link

Field value does not evaluate on following page (conditionalformfields) #79

Closed Shoekrates closed 4 months ago

Shoekrates commented 7 months ago

Hi, I already opened an issue at https://github.com/terminal42/contao-conditionalformfields/issues/87 Sorry for double posting this, but I am not sure if this could be an error of mp_forms v5 as well.

As far as I understand a feature of the compatibility update to conditionalformfields (https://github.com/terminal42/contao-conditionalformfields/pull/42) was to make field values from previous steps be available in the javascript.

If I set a condition on a field value from a previous step the value isn't present: Uncaught ReferenceError: FIELDNAME is not defined. It doesn't matter if it is a checkbox or a radio button. If I take off the dividing pagebreak the condition works. I could hand over the value of the field with an insert tag to another field on the following page but this works only if I don't go back afterwards. Stepping back and changing the checkbox does not change the initially set inserttag value on the following page. Any ideas to get this to work?