A
A
artforlife2020-10-13 19:27:18
Bitrix24
artforlife, 2020-10-13 19:27:18

Filling in a multivalued list in Bitrix 24 with CRM Forms?

Good afternoon.

I created a CRM form in Bitrix 24, which I plan to use as registration for the event. In this form, we need to transfer the values ​​of several multivalued lists (custom fields on the Contact entity) to Bitrix. The difficulty is that we can't figure out how to pass multiple values ​​into one list. The default value is set and passed, but this is not enough.

Tried the following form code:

<script id="bx24_form_inline" data-skip-moving="true">
 (function(w,d,u,b){w['Bitrix24FormObject']=b;w[b] = w[b] || function(){arguments[0].ref=u;
     (w[b].forms=w[b].forms||[]).push(arguments[0])};
     if(w[b]['forms']) return;
     var s=d.createElement('script');s.async=1;s.src=u+'?'+(1*new Date());
     var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
 })(window,document,'https://b24-хххх.bitrix24.ru/bitrix/js/crm/form_loader.js','b24form');

 b24form({"id":"5","lang":"ru","sec":"gioa1j","type":"inline", "presets": {"CONTACT_UF_CRM_ххххх": "вар0", "CONTACT_UF_CRM_хххх": ["вар1" , "вар2"]}});
</script>


At the same time, the corresponding fields were included in the "Default field values:" section in the CRM form settings.

Perhaps somehow you can select several default values, but this is not visible in the CRM form settings.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question