Webform events
All events are called before calling a corresponding handler-files for result status. Handler is not designed to return any values. The handlers with specified (onBefore*) can return messages via generated system exception (CMain::ThrowException()). In case of such thrown exception, all subsequent operations with the result are interrupted (including webform status handlers). However, all current event handlers are called anyway. Data, passed using links, allow direct value updates.
Event | Called | Method | Available from version |
---|---|---|---|
OnAfterFormCrmAdd | after adding CRM server, available to associate the form. | CFormCrm::Add | |
OnAfterFormCrmDelete | after deleting CRM server, available to associate the form. | CFormCrm::Delete | |
OnAfterFormCrmUpdate | after updating CRM server, available to associate the form. | CFormCrm::Update | |
OnBeforeFormCrmAdd | before adding CRM server, available to associate the form. | CFormCrm::Add | |
OnBeforeFormCrmDelete | before deleting CRM server, available to associate the form.. | CFormCrm::Delete | |
OnBeforeFormCrmUpdate | before updating CRM server, available to associate the form.. | CFormCrm::Update | |
onBeforeResultAdd | before adding new webform result. | CFormResult::Add | |
onAfterResultAdd | after adding new webform result. | CFormResult::Add | |
onBeforeResultUpdate | before saving updates to existing result. | CFormResult::Update | |
onAfterResultUpdate | after saving updates to webform result. | CFormResult::Update | |
onBeforeResultDelete | before deleting webform result. | CFormResult::Delete | |
onBeforeResultStatusChange | before updating webform result status. | CFormResult::SetStatus | |
onAfterResultStatusChange | after updating webform result status. | CFormResult::SetStatus | |
onFormValidatorBuildList | upon building list of custom validators for webform fields. | CFormValidator::GetAllList |
© «Bitrix24», 2001-2024