L
L
Laid2016-06-24 18:58:34
PHP
Laid, 2016-06-24 18:58:34

How to pass the value of several fields to a Bitrix CRM custom field?

There is a web form on the site (CMS - WordPress)
I integrate with CRM Bitrix.
The question arose how to transfer the value of several fields to one Bitrix custom field?
(if stupidly inserted, then only the value of the last input is transmitted)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava Vitrenko, 2016-06-24
@bagiroff777

Option 1:
In the Wordpress form, for the inputs that need to be imploded, set the name parameter in the name[] format. Or, easier, make the input a select with the multiple=multiple parameter.
In general, a WordPress form:

<form action="">
    <input type="text" name="inputName[]">
    <input type="text" name="inputName[]">
    <button type='submit'>Отправить</button>
</form>

Option 2:
Create a custom field in Bitrix in advance with the "multiple" parameter and set the values. But here you will have to pull the id values ​​from Bitrix, and pass the IDs in WordPress.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question