• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/ui/webpack/form.php
  • Класс: Bitrix\Crm\UI\Webpack\Form
  • Вызов: Form::configureFile
protected function configureFile()
{
	if ($this->form)
	{
		$sec = $this->form->get()['SECURITY_CODE'] ?? '';
	}
	else
	{
		$sec = WebForm\Internals\FormTable::getRow([
			'select' => ['SECURITY_CODE'],
			'filter' => ['=ID' => $this->getId()]
		])['SECURITY_CODE'] ?? '';
	}

	$this->configureFormEmbeddedScript([
		'action' => 'inline',
		'sec' => $sec,
	]);
}