Instructions:
1. You need to access the field in the loop(In my case, through the related form)
Code of the view:
{% for systemItem in form.accountSetting.eprocurementSystemUsed.vars.form.children %}
<div>
{{ form_widget(systemItem) }}
{{ form_label(systemItem) }}
</div>
{% endfor %}
Code of the form:
->add('eprocurementSystemUsed', ChoiceType::class, [
'choices' => [
'Ariba' => AccountSetting::EPROCURMENT_SYSYTEM_ARIBA,
'Proactis' => AccountSetting::EPROCURMENT_SYSYTEM_PROACTIS,
'Coupa' => AccountSetting::EPROCURMENT_SYSYTEM_COUPA,
'Newtron' => AccountSetting::EPROCURMENT_SYSYTEM_NEWTRON,
'SAP' => AccountSetting::EPROCURMENT_SYSYTEM_SAP,
'Other' => AccountSetting::EPROCURMENT_SYSYTEM_OTHER,
'Oracle' => AccountSetting::EPROCURMENT_SYSYTEM_ORACLE,
],
'expanded' => true,
'multiple' => false,
'empty_data' => null,
'required' => false,
])
Results: input and label in div.