Forums

popup forms

ernst@volny.cz 04 May, 2019
I have a form done as a popup. Everything works fine, just check the captcha (if captcha is not specified), the popup closes and the captcha error reports it in the module from which the captcha was called.
See https://sumanet.8u.cz/index.php?#dekujeme.
Can it be set to prevent a popup from closing when a captcha error occurs?
Current settings:

healyhatman 05 May, 2019
Is it set to AJAX submission?
ernst@volny.cz 05 May, 2019
when ajax is turned on, it behaves differently, but the window will not close even if the form is submitted successfully and the form module will appear in the popup when the catch is incorrect
there is a bug in the console
Navigated to https://sumanet.8u.cz/index.php?chronoform=zprava&event=submit
jquery-migrate.min.js?31a402db49217f03d029401dff25d00d:2 JQMIGRATE: Migrate is installed, version 1.4.1
yjsg.site.js:12 Error: Script error.
url: :0
line: 0
recaptcha__cs.js:529 Uncaught Error: reCAPTCHA has already been rendered in this element
at Object.bC [as render] (VM218508 recaptcha__cs.js:529)
at window.JoomlaInitReCaptcha2 (recaptcha.min.js?31a402db49217f03d029401dff25d00d:1)
at Cn (VM218508 recaptcha__cs.js:537)
at J (VM218508 recaptcha__cs.js:524)
i tried it on pure joomla (3.9.5.) and protostar template, but it still behaves the same way (error in console does not report)
healyhatman 05 May, 2019
You have multiple recaptchas on your page at once from the look of that ?
ernst@volny.cz 05 May, 2019
I had btlogin. I turned it off, but the result is still the same.
console error:
​[pre][Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>
mootools-core.js:35 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312[/pre]

the error was probably random, now it is not showing.
There are no errors in the console or in the php error log.[br]Popup still works poorly.
healyhatman 05 May, 2019
So explain to me again what happens from when you open the popup to when you finish your actions?
ernst@volny.cz 05 May, 2019
please try it on https://sumanet.8u.cz/index.php?#dekujeme

when I open the form (in popup), I will fill in and not fill in the captch https://jmp.sh/dhilFyR,
I will see this window https://jmp.sh/hpglWBl after closing https://jmp.sh/fbCBm7k and reload https://jmp.sh/f8PYqPi
When I turn off ajex verification, https://jmp.sh/3pTbKtk will appear after filling in form https://jmp.sh/zrnc4U1 will display https://jmp.sh/3pTbKtk
This topic is locked and no more replies can be posted.