Bitrix Site Manager

CFormValidator::SetBatch

CFormValidator::SetBatch(
 int WEB_FORM_ID,
 int FIELD_ID,
 array arValidators = array(),
)

The method SetBatch attaches a group of validators with specified settings to a form field. The method is similar to calling the CFormValidator::Set for each validator.

Parameters

Parameter Description
WEB_FORM_ID The web form ID.
FIELD_ID The question ID.
arValidators An array of validators. Each array element is an associated array with the following keys:
  • NAME - the validator identifier;
  • PARAMS - an array of validator parameters.