I
I
IwanIwanow2021-01-18 15:57:15
Bitrix24
IwanIwanow, 2021-01-18 15:57:15

Is it possible to fill the field type "drop-down list" in the lead with information coming from the form on the site?

The user fills out a form on a particular site, as a result of which a lead is created in Bitrix. The form has a hidden field with the website address. There is a field in the lead that should be filled with site addresses, and this field is a drop-down list with addresses of multiple sites.
Question: will it be possible to automatically fill in the lead field, which is a drop-down list? And if so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
ReaverJS, 2021-01-18
@IwanIwanow

Bitrix inserts the form directly into your dom, so there are no manipulation problems.
In the code below, the Company field is automatically filled after 1 second (when the form is already 100% rendered).
You can do it more beautifully, for example, through a mutation observer.
And one more thing - Bitrix does not name the fields, so you will have to compose the selector before the element by hand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question