S
S
Simon Tis2019-10-02 19:31:55
JavaScript
Simon Tis, 2019-10-02 19:31:55

How to intercept form data on the 1C Bitrix website using js?

There is a site on 1C Bitrix. Developed by a certain company, with its own custom infoblocks, where requests from the site fall.
For some reason, I cannot receive data from this infoblock.
I need to somehow embed a js form handler into the page template (catch not only site field data, but also cookies).
Please tell me how and where can I insert js code on a 1C site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-10-02
@simon91

JS code that will collect data, connect to the site template. It is usually located in /local/templates/TemplateName/
There will be header.php and footer.php files in any of them add your script connection.
Well, the script is the simplest - it just works on $('form').onsubmit, collects field values ​​and sends you along with cookies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question