terminal42 / contao-mp_forms

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

Steps navigation module not updating with ajaxform #81

Closed falkgeist closed 6 months ago

falkgeist commented 6 months ago

Although the proposed fix from terminal42/contao-ajaxform#28 worked for Contao 4.13, the steps navigation module is now not updating properly.

I can see the navigation changing by looking at some dumps the POST responses in debug mode, but the actual navigation is not updated.

I don't have a fix yet, but will provide one if I find the time to figure out how.

Toflar commented 6 months ago

You have to place the navigation inside the form. The form only updates itself so anything outside that form is never updated.

falkgeist commented 6 months ago

Hm, okay, that's quite cumbersome, either I put the navigation on every page of the form or I adjust the template, which both really feels more like a patch...

falkgeist commented 6 months ago

But anyways, it works, just needed to add the inserttag for the module (and, in my case, the custom progressbar html) in both the ajaxform.html5 and the ajaxform_inline.html5 template.

Thanks @Toflar