Closed akroii closed 10 months ago
In hindsight, I think this is a UX/UI feature that a developer should do themselves.
if(document.querySelector("#ds") !== null){
document.getElementById("ds").addEventListener("submit",function(event) {
if(event.submitter.id == "mp_form_pageswitch_108_5"){
document.getElementById('mp_form_pageswitch_108_5').disabled = true;
console.log("button disabled");
}
});
}
When you set up a form with multistep page behaviour, it is possible to hit the final submit button multiple times while the form is processing. After this you would get the current url in the frame.
I'm using it in combination with
Contao: 4.9.33 terminal42/contao-ajaxform: 1.1.3 terminal42/contao-mp_forms: 4.4.0