Answer the question
In order to leave comments, you need to log in
How to collect data from 1C-Bitrix feedback forms?
There is a site on 1C Bitrix.
The task is to collect the data from the forms ( + cookie ).
How to do it? Does 1C Bitrix have a single handler?
Or do you need to find the layout of the page - to cling to each form and already so, almost standard to receive data?
Answer the question
In order to leave comments, you need to log in
My solution would be like this, especially if the data from the forms is added to the IB - forget about the forms altogether and intercept the creation of the element in the corresponding IB.
Here is the dock - https://dev.1c-bitrix.ru/api_help/iblock/events/on...
Why is it better:
- no need to adapt to different forms, if the forms are different
- you can always add a new form by analogy and does not care about sending data from it
- the situation when an element is added to amo, but not in Bitrix is impossible
there are two types of forms,
through a separate web form module, and everything is simple here, you pull the data through the api https://dev.1c-bitrix.ru/api_help/form/classes/ind...
and there is a poor main.feedback component https://dev.1c-bitrix.ru/user_help/components/sluz...
and here it does not save data to a separate table, all you can do is pull out the email sending log from the b_event table,
in any case, you must first look at what components are used, maybe there is something custom there, for example, on infoblocks
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question