- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
--- application/helpers/frontend_helper.php +++ application/helpers/frontend_helper.php @@ -1631,7 +1631,13 @@ if($scenarios['tokenRequired']){ doFRender('/survey/frontpage/enterToken', $aEnterTokenData, false); } else { - App()->getController()->renderPartial('/survey/frontpage/enterCaptcha', $aEnterTokenData); + $event = new PluginEvent('beforeCaptcha'); + $event->set('surveyId', $surveyid); + App()->getPluginManager()->dispatchEvent($event); + + if(!$event->get('hideCaptcha')){ + App()->getController()->renderPartial('/survey/frontpage/enterCaptcha', $aEnterTokenData); + } } echo templatereplace(file_get_contents($sTemplateViewPath."endpage.pstpl"),array(),$redata,'frontend_helper[1645]');