Answer the question
In order to leave comments, you need to log in
Is it possible to write an API based on the form component in Bitrix?
Is it possible to create an API based on the Bitrix form component so that at any time you can send a value object from JS to a specific url, and Bitrix would add them to the system as a completed form? I myself do not work with Bitrix, I'm just interested in the possibility of implementing such functionality.
For example:
// Отправляем из JS поля name и last_name
fetch('/forms/add_lead/', {
body: {
name: 'John',
last_name: 'Doe'
}
})
Answer the question
In order to leave comments, you need to log in
Can it be done? Can.
Does it currently exist? No.
You will have to develop this mechanism yourself, but you can take even infoblocks, even web forms, even your own table as a basis.
That's what Webhooks are for.
https://dev.1c-bitrix.ru/learning/course/?COURSE_I...
https://dev.1c-bitrix.ru/learning/course/?COURSE_I...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question