M
M
miniven2018-12-10 10:17:11
1C-Bitrix
miniven, 2018-12-10 10:17:11

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'
  }
})

In the Bitrix admin panel, the result of filling out the form should come, it should be displayed as: First
name : John
Last name : Doe

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2018-12-10
@gromdron

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.

A
Alexey Emelyanov, 2018-12-10
@babarun

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 question

Ask a Question

731 491 924 answers to any question