Answer the question
In order to leave comments, you need to log in
How to remove “Agree to the terms” in Bitrix forms?
The first time I encountered such a problem, the regular template does not send it when filling out the form, but gives an error
Agree to the terms
<input type="checkbox" hidden name="licenses_subscribe" value="Y">
Answer the question
In order to leave comments, you need to log in
The problem was in AsproMax.
You need to find the /bitrix/modules/aspro.max/classes/general/CMaxEvents.php function in it
onBeforeResultAddHandler
and add the check by excluding the desired site
if((!defined('ADMIN_SECTION')) and (SITE_ID != 's2'))
static function onBeforeResultAddHandler($WEB_FORM_ID, &$arFields, &$arrVALUES){
if((!defined('ADMIN_SECTION')) and (SITE_ID != 's2'))
{
global $APPLICATION;
$arTheme = CMax::GetFrontParametrsValues(SITE_ID);
if($arTheme['HIDDEN_CAPTCHA'] == 'Y' && $arrVALUES['nspm'] && !isset($arrVALUES['captcha_sid']))
$APPLICATION->ThrowException(Loc::getMessage('ERROR_FORM_CAPTCHA'));
if($arTheme['SHOW_LICENCE'] == 'Y' && ((!isset($arrVALUES['licenses_popup']) || !$arrVALUES['licenses_popup']) && (!isset($arrVALUES['licenses_inline']) || !$arrVALUES['licenses_inline'])))
$APPLICATION->ThrowException(Loc::getMessage('ERROR_FORM_LICENSE'));
}
}
<input type="checkbox" id="licenses_popup" name="licenses_popup" checked="Y" value="Y" aria-required="true">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question