Green pop-up notification for success is random
Posted: Wed Feb 26, 2025 2:15 pm
I have a form for conference registration which I made by a deep rebuild of the contact form.
The problem: the red error popups work well and always, while the green success pop-up shows up at random. Or rather, it seems to never show up if registration goes smoothly (with no errors) on the first try. Everything else works, and if there where errors - the next attempt does show the green pop-up.
The internal works in terms of function call structure is the same exact as in contact.php. Also, funnily enough, I think the original contact form also does this bug - I do not explicitly remember testing it though. I likely did?
Thus: what controls the pop-up? I do smarty->assign('success', 1) on success, and that does not work. Or rather, it does not work first time. I cannot pinpoint it by analysing the code, so - HALP.
Thank you
The problem: the red error popups work well and always, while the green success pop-up shows up at random. Or rather, it seems to never show up if registration goes smoothly (with no errors) on the first try. Everything else works, and if there where errors - the next attempt does show the green pop-up.
The internal works in terms of function call structure is the same exact as in contact.php. Also, funnily enough, I think the original contact form also does this bug - I do not explicitly remember testing it though. I likely did?
Thus: what controls the pop-up? I do smarty->assign('success', 1) on success, and that does not work. Or rather, it does not work first time. I cannot pinpoint it by analysing the code, so - HALP.
Thank you