Your IP : 18.117.100.130


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/aspro.allcorp3/lib/solution/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/aspro.allcorp3/lib/solution/form.php

<?

namespace Aspro\Allcorp3\Solution;

class Form
{
	public static function OnAsproAdditionalFormHandler($arParams)
	{
	}

	public static function BeforeAsproDrawFormFieldHandler($FIELD_SID, &$arQuestion, &$type, &$arParams)
	{
		if (strpos($FIELD_SID, 'PRODUCT') !== false) {
			$arQuestion['HTML_CODE'] = str_replace('type="text"', 'type="hidden"', $arQuestion['HTML_CODE']);
			$arQuestion['FIELD_TYPE'] = $arQuestion['STRUCTURE'][0]['FIELD_TYPE'] = 'hidden';
		}
	}

	public static function OnAsproIBlockFormDrawFieldsHandler($FIELD_CODE, &$arQuestion)
	{
		if (strpos($FIELD_CODE, 'PRODUCT') !== false) {
			$arQuestion['HTML_CODE'] = str_replace('type="text"', 'type="hidden"', $arQuestion['HTML_CODE']);
			$arQuestion['FIELD_TYPE'] = 'hidden';
			$arQuestion['STRUCTURE'][0]['FIELD_TYPE'] = 'hidden';
		}
	}
}