$builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
$customItemAttributeName = $event->getData()->getCustomItemAttribute()->getName();
$form = $event->getForm();
$form
->add('value', TextType::class, [
'label' => $customItemAttributeName,
]);
});