Answer the question
In order to leave comments, you need to log in
How can I change the event for the arrow function from form B24 initialization to the submit event of this form?
There is an article in the Bitrix24 help. An example of working with the code of new CRM forms
The article says that you can set the values of fields that are not placed on this form.
To do this, just place the code before the form itself:
<script> window.addEventListener('b24:form:init', (event) => { let form = event.detail.object; if (form.identification.id == 792) { form.setProperty("param1", "1"); form.setProperty("city", "Kaliningrad"); } }); </script>
form.setProperty("param1", "1");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question