N
N
Nikita Grevtsov2017-05-23 08:43:28
PHP
Nikita Grevtsov, 2017-05-23 08:43:28

How to add custom handler to form implemented via iblock.element.add.form component?

Hello!
On the site, the forms are implemented through the above component. The action attribute of the form is set to . To be honest, I don’t fully understand how it works, where is the script that actually processes the form? My task is to get the data of the completed form and send it to Bitrix-24 to form a lead, i.e. attach another php script to the form. Tell me the best way to do this, please? <?=POST_FORM_ACTION_URI?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Pavlov, 2017-05-23
@N_Grevtsov

Intercepting the addition of an element to the infoblock is simple, you need to subscribe to the event.
https://dev.1c-bitrix.ru/api_help/iblock/events/on...
In order to transfer data to Bitrix24 without using the "Web Forms" module (everything is there out of the box), you will most likely have to either immediately look at Rest api Bitrix24, or see how sending is arranged in the "Web Forms" module (and implement according to the model).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question