This topic contains 1 reply, has 1 voice, and was last updated by jakabadambalazs 9 years, 2 months ago.
- Topic
Hi,
I have created a generic form type EntityMultiSelectType based on oro_jqueryselect2_hidden which serves the purpose to be able to select multiple entities of a give type (based of search handlers). It works decently.
When I use it to select users, I am able to modify/adjust the “result_template” with the _ template style, so in the dropdown selection the output is ok, but as soon as an item is selected it seems that the “select_template” is not taken into consideration.
This is how I implement the form type:
1234567891011121314151617//select multiple users$builder->add('users','mekit_entity_multi_select',['required' => false,'label' => 'mekit.account.users.label','autocomplete_alias' => 'users','entity_class' => 'Oro\Bundle\UserBundle\Entity\User','configs' => ['result_template' => '<%= _.escape(fullName) %>','select_template' => '<%= _.escape(fullName) %>']]);When I click on the field the dropdown correcly shows the “fullName” of the users but as soon as I select one it changes to the combined values of “username”+”fullName”+”email” – and I cannot seem to be able to format it.
Do you have any ideas?
a\oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.