{"action":"opened","issue":{"url":"https://api.github.com/repos/orocrm/crm/issues/102","labels_url":"https://api.github.com/repos/orocrm/crm/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/orocrm/crm/issues/102/comments","events_url":"https://api.github.com/repos/orocrm/crm/issues/102/events","html_url":"https://github.com/orocrm/crm/issues/102","id":53323480,"number":102,"title":"[Q] Customized channel autocomplete dropdown","user":{"login":"excelwebzone","id":4467438,"avatar_url":"https://avatars.githubusercontent.com/u/4467438?v=3","gravatar_id":"","url":"https://api.github.com/users/excelwebzone","html_url":"https://github.com/excelwebzone","followers_url":"https://api.github.com/users/excelwebzone/followers","following_url":"https://api.github.com/users/excelwebzone/following{/other_user}","gists_url":"https://api.github.com/users/excelwebzone/gists{/gist_id}","starred_url":"https://api.github.com/users/excelwebzone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excelwebzone/subscriptions","organizations_url":"https://api.github.com/users/excelwebzone/orgs","repos_url":"https://api.github.com/users/excelwebzone/repos","events_url":"https://api.github.com/users/excelwebzone/events{/privacy}","received_events_url":"https://api.github.com/users/excelwebzone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-04T03:13:15Z","updated_at":"2015-01-04T03:13:15Z","closed_at":null,"body":"I'm trying to customize an autocomplete channel dropdown. Here is what I have so far:\r\n\r\n```php\r\nclass Type extends ExtendType implements ChannelAwareInterface\r\n{\r\n    use IntegrationEntityTrait, OriginTrait, ChannelEntityTrait;\r\n\r\n    /**\r\n     * @var string\r\n     *\r\n     * @ORM\\Column(name=\"name\", type=\"string\", length=255)\r\n     */\r\n    protected $name;\r\n\r\n    /**\r\n     * @var integer\r\n     *\r\n     * @ORM\\Column(name=\"level\", type=\"integer\", nullable=true)\r\n     */\r\n    protected $level;\r\n   //...\r\n}\r\n```\r\n```php\r\nclass TypeSelectType extends AbstractType\r\n{\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function setDefaultOptions(OptionsResolverInterface $resolver)\r\n    {\r\n        $resolver->setDefaults([\r\n            'configs' => [\r\n                'placeholder' => 'acme.type.form.choose_type',\r\n            ],\r\n            'autocomplete_alias' => 'types',\r\n            'grid_name'          => 'demo-type-grid',\r\n            'create_form_route'  => 'demo_type_create',\r\n            'create_enabled'     => true,\r\n        ]);\r\n    }\r\n\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function getParent()\r\n    {\r\n        return 'oro_entity_create_or_select_inline_channel_aware';\r\n    }\r\n\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function getName()\r\n    {\r\n        return 'demo_type_select';\r\n    }\r\n}\r\n```\r\nWhat I'm trying to do is when choosing a type it will set the input field with \"data-level\" of the selected type. Can anyone help me this it? Thanks."}}